From d30f74269b1418e2e14fa85f1210613036c2da0c Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Tue, 10 Dec 2024 19:07:13 +0000 Subject: Resuming smtp Django email backend --- config/settings/production.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/config/settings/production.py b/config/settings/production.py index d0786c1..262ce2f 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -134,7 +134,8 @@ ADMIN_URL = env("DJANGO_ADMIN_URL") # "MAILGUN_API_URL": env("MAILGUN_API_URL", default="https://api.mailgun.net/v3"), # } -EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" +#EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" +EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" # LOGGING # ------------------------------------------------------------------------------ @@ -234,4 +235,4 @@ MAILGUN_API_URL = env("MAILGUN_API_URL", default="https://api.eu.mailgun.net/v3" USE_X_FORWARDED_HOST = True SECURE_PROXY_SSL_HEADER = ("HTTP_X_FORWARDED_PROTO", "https") RECAPTCHA_USE_SSL = True # Use HTTPS for requests -#RECAPTCHA_PROXY = {'http': 'http://127.0.0.1:5000', 'https': 'https://127.0.0.1:5000'} \ No newline at end of file +#RECAPTCHA_PROXY = {'http': 'http://127.0.0.1:5000', 'https': 'https://127.0.0.1:5000'} -- cgit v1.2.3