diff options
author | Matthew Lemon <y@yulqen.org> | 2024-12-10 19:14:43 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-12-10 19:14:43 +0000 |
commit | 76148a0612285c2d008f02c67c11ff91dddd7b96 (patch) | |
tree | 5691049432f53975bdcb27961c65642d6c8bf212 | |
parent | d30f74269b1418e2e14fa85f1210613036c2da0c (diff) |
Update prod settings for Django email
-rw-r--r-- | config/settings/production.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/config/settings/production.py b/config/settings/production.py index 262ce2f..252f882 100644 --- a/config/settings/production.py +++ b/config/settings/production.py @@ -103,6 +103,7 @@ STORAGES = { # EMAIL # ------------------------------------------------------------------------------ # https://docs.djangoproject.com/en/dev/ref/settings/#default-from-email +EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" DEFAULT_FROM_EMAIL = env( "DJANGO_DEFAULT_FROM_EMAIL", default="alphabetlearning.online <noreply@alphabetlearning.online>", @@ -114,6 +115,12 @@ EMAIL_SUBJECT_PREFIX = env( "DJANGO_EMAIL_SUBJECT_PREFIX", default="Alphabet Learning Online -", ) +SERVER_EMAIL = env("DJANGO_SERVER_EMAIL", default=DEFAULT_FROM_EMAIL) +EMAIL_HOST = env("EMAIL_HOST") +EMAIL_PORT = env("EMAIL_PORT") +EMAIL_HOST_USER = env("EMAIL_HOST_USER") +EMAIL_HOST_PASSWORD = env("EMAIL_HOST_PASSWORD") +EMAIL_USE_TLS = env.bool("EMAIL_USE_TLS", default=True) # ADMIN # ------------------------------------------------------------------------------ @@ -135,7 +142,6 @@ ADMIN_URL = env("DJANGO_ADMIN_URL") # } #EMAIL_BACKEND = "django.core.mail.backends.console.EmailBackend" -EMAIL_BACKEND = "django.core.mail.backends.smtp.EmailBackend" # LOGGING # ------------------------------------------------------------------------------ |