Skip to content

Commit

Permalink
added defaults to email env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
shtayeb committed Dec 17, 2023
1 parent 3869e5f commit ac28cc7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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="[email protected]")
EMAIL_HOST_PASSWORD = env("EMAIL_HOST_PASSWORD",default="")
DEFAULT_FROM_EMAIL = env("DEFAULT_FROM_EMAIL",default="[email protected]")
EMAIL_USE_TLS = env("EMAIL_USE_TLS",default=True)
EMAIL_USE_SSL = env("EMAIL_USE_SSL", default=True)

0 comments on commit ac28cc7

Please sign in to comment.