Skip to content

Commit

Permalink
Debug email notifications system
Browse files Browse the repository at this point in the history
  • Loading branch information
ygalnezri committed Dec 10, 2024
1 parent f7aa205 commit e8453ff
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Watcher/Watcher/watcher/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,16 @@
EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend'
SMTP_SERVER = os.environ.get('SMTP_SERVER', '')
EMAIL_PORT = int(os.environ.get('EMAIL_PORT', 25))
EMAIL_USE_TLS = os.environ.get('EMAIL_USE_TLS', 'False')
EMAIL_USE_SSL = os.environ.get('EMAIL_USE_SSL', 'False')
EMAIL_USE_TLS = os.environ.get('EMAIL_USE_TLS', False)
if EMAIL_USE_TLS == "True":
EMAIL_USE_TLS = True
if EMAIL_USE_TLS == "False":
EMAIL_USE_TLS = False
EMAIL_USE_SSL = os.environ.get('EMAIL_USE_SSL', False)
if EMAIL_USE_SSL == "True":
EMAIL_USE_SSL = True
if EMAIL_USE_SSL == "False":
EMAIL_USE_SSL = False
EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER', '')
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD', '')
EMAIL_FROM = os.environ.get('EMAIL_FROM', '')
Expand Down

0 comments on commit e8453ff

Please sign in to comment.