aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--config/settings/production.py8
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
# ------------------------------------------------------------------------------