From ac28cc7503965b5f4fb81e27b04cddf5e612023b Mon Sep 17 00:00:00 2001 From: Shahryar Tayeb Date: Sun, 17 Dec 2023 11:45:34 +0430 Subject: [PATCH] added defaults to email env variables --- src/core/settings/base.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/settings/base.py b/src/core/settings/base.py index c3b0ead6..5c5117d4 100644 --- a/src/core/settings/base.py +++ b/src/core/settings/base.py @@ -169,10 +169,10 @@ # Can use MailTrap SMTP Setup for now (dev and staging only). EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' -EMAIL_HOST = env("EMAIL_HOST") -EMAIL_PORT = env("EMAIL_PORT") # 2525 -EMAIL_HOST_USER = env("EMAIL_HOST_USER") -EMAIL_HOST_PASSWORD = env("EMAIL_HOST_PASSWORD") -DEFAULT_FROM_EMAIL = env("DEFAULT_FROM_EMAIL") +EMAIL_HOST = env("EMAIL_HOST",default="smtp.mailtrap.io") +EMAIL_PORT = env("EMAIL_PORT",default=587) # 2525 +EMAIL_HOST_USER = env("EMAIL_HOST_USER",default="reporthub@immap.org") +EMAIL_HOST_PASSWORD = env("EMAIL_HOST_PASSWORD",default="") +DEFAULT_FROM_EMAIL = env("DEFAULT_FROM_EMAIL",default="reporthub@immap.org") EMAIL_USE_TLS = env("EMAIL_USE_TLS",default=True) EMAIL_USE_SSL = env("EMAIL_USE_SSL", default=True)