From f8095c75f880a099fb8f08e05a359755458ef79a Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sun, 8 Dec 2024 17:37:55 +0000 Subject: Uses Mailgun for production and local settings - credentials are in the .env file - uses the mailgun http API to send verification messages --- config/settings/base.py | 3 +++ config/settings/production.py | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'config') diff --git a/config/settings/base.py b/config/settings/base.py index 28e40ed..9c6183c 100644 --- a/config/settings/base.py +++ b/config/settings/base.py @@ -356,3 +356,6 @@ AWS_S3_ENDPOINT_URL = env("SPACES_ENDPOINT_URL") # Your stuff... # ------------------------------------------------------------------------------ +MAILGUN_API_KEY = env("MAILGUN_API_KEY") +MAILGUN_SENDER_DOMAIN = env("MAILGUN_SENDER_DOMAIN") +MAILGUN_API_URL = env("MAILGUN_API_URL", default="https://api.eu.mailgun.net/v3") diff --git a/config/settings/production.py b/config/settings/production.py index f8e48ac..cfd7d78 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -226,4 +226,7 @@ LOGGING = { # Your stuff... -# ------------------------------------------------------------------------------ +# My manual Mailgun stuff +MAILGUN_API_KEY = env("MAILGUN_API_KEY") +MAILGUN_SENDER_DOMAIN = env("MAILGUN_DOMAIN") +MAILGUN_API_URL = env("MAILGUN_API_URL", default="https://api.eu.mailgun.net/v3") -- cgit v1.2.3