From c23fd2089438224448c7b0479d921e68247780d9 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 26 Jan 2017 17:40:15 +0100 Subject: [PATCH 1/2] EMail to YAML settings --- rowsandall_app/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rowsandall_app/settings.py b/rowsandall_app/settings.py index 4881d79f..a8b05bd5 100644 --- a/rowsandall_app/settings.py +++ b/rowsandall_app/settings.py @@ -255,12 +255,12 @@ EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST = CFG['email_host'] #EMAIL_HOST = 'smtp.rosti.cz' #EMAIL_PORT = '25' -EMAIl_PORT = '587' +EMAIl_PORT = 587 EMAIL_HOST_USER = CFG['email_host_user'] #EMAIL_HOST_PASSWORD = 'lnD3mbZ1NoI8RK1StOdO' EMAIL_HOST_PASSWORD = CFG['email_host_password'] -#EMAIL_USE_TLS = True -EMAIL_USE_TLS = False +EMAIL_USE_TLS = True +#EMAIL_USE_TLS = False # weather stuff From 79f2df050ded3f732c409f3c5502a778b41590f5 Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Thu, 26 Jan 2017 17:44:06 +0100 Subject: [PATCH 2/2] SMTP further testing --- rowsandall_app/settings.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rowsandall_app/settings.py b/rowsandall_app/settings.py index a8b05bd5..d034db63 100644 --- a/rowsandall_app/settings.py +++ b/rowsandall_app/settings.py @@ -251,15 +251,15 @@ SESSION_ENGINE = "django.contrib.sessions.backends.cache" # email stuff -EMAIL_BACKEND = 'django.core.mail.backends.smtp.EmailBackend' +EMAIL_BACKEND = CFG['email_backend'] EMAIL_HOST = CFG['email_host'] #EMAIL_HOST = 'smtp.rosti.cz' #EMAIL_PORT = '25' -EMAIl_PORT = 587 +EMAIL_PORT = CFG['email_port'] EMAIL_HOST_USER = CFG['email_host_user'] #EMAIL_HOST_PASSWORD = 'lnD3mbZ1NoI8RK1StOdO' EMAIL_HOST_PASSWORD = CFG['email_host_password'] -EMAIL_USE_TLS = True +EMAIL_USE_TLS = CFG['email_use_tls'] #EMAIL_USE_TLS = False