aboutsummaryrefslogtreecommitdiffstats
path: root/alphabetlearning/payments
diff options
context:
space:
mode:
Diffstat (limited to 'alphabetlearning/payments')
-rw-r--r--alphabetlearning/payments/views.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/alphabetlearning/payments/views.py b/alphabetlearning/payments/views.py
index 4a65b48..5d8449d 100644
--- a/alphabetlearning/payments/views.py
+++ b/alphabetlearning/payments/views.py
@@ -89,15 +89,16 @@ def send_mailgun_verification(
verification_url: str = None,
warn=False,
):
+ breakpoint()
if warn:
warning_message = """
You are already subscribed to our list - no further action is required.
"""
requests.post(
- "https://api.mailgun.net/v3/sandbox98fd3a1c6501446aa57a9c8b76e56e15.mailgun.org/messages",
- auth=("api", "7535a010b822cd503dc5a11670a64194-f55d7446-76d3865a"),
+ f"{settings.MAILGUN_API_URL}/{settings.MAILGUN_SENDER_DOMAIN}/messages",
+ auth=("api", settings.MAILGUN_API_KEY),
data={
- "from": "Excited User <mailgun@sandbox98fd3a1c6501446aa57a9c8b76e56e15.mailgun.org>",
+ "from": f"No reply - Alphabet Learning <noreply@{settings.MAILGUN_SENDER_DOMAIN}>",
"to": [
email,
],
@@ -112,10 +113,10 @@ def send_mailgun_verification(
If you didn't request this, please ignore this email.
"""
requests.post(
- "https://api.mailgun.net/v3/sandbox98fd3a1c6501446aa57a9c8b76e56e15.mailgun.org/messages",
- auth=("api", "7535a010b822cd503dc5a11670a64194-f55d7446-76d3865a"),
+ f"{settings.MAILGUN_API_URL}/{settings.MAILGUN_SENDER_DOMAIN}/messages",
+ auth=("api", settings.MAILGUN_API_KEY),
data={
- "from": "Excited User <mailgun@sandbox98fd3a1c6501446aa57a9c8b76e56e15.mailgun.org>",
+ "from": f"No reply - Alphabet Learning <noreply@{settings.MAILGUN_SENDER_DOMAIN}>",
"to": [
email,
],