From 33fb1f50860a2d59e07a2cef00147a5bcaf9658e Mon Sep 17 00:00:00 2001 From: Sander Roosendaal Date: Sat, 17 Mar 2018 19:49:29 +0100 Subject: [PATCH] changed settings to use AWS SES for outgoing email --- rowsandall_app/settings.py | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/rowsandall_app/settings.py b/rowsandall_app/settings.py index 62f79fd1..3842800d 100644 --- a/rowsandall_app/settings.py +++ b/rowsandall_app/settings.py @@ -315,13 +315,25 @@ CACHE_MIDDLEWARE_SECONDS = 900 # email stuff -EMAIL_BACKEND = CFG['email_backend'] -EMAIL_HOST = CFG['email_host'] -EMAIL_PORT = CFG['email_port'] -EMAIL_HOST_USER = CFG['email_host_user'] -EMAIL_HOST_PASSWORD = CFG['email_host_password'] +#EMAIL_BACKEND = CFG['email_backend'] +#EMAIL_HOST = CFG['email_host'] +#EMAIL_PORT = CFG['email_port'] +#EMAIL_HOST_USER = CFG['email_host_user'] +#EMAIL_HOST_PASSWORD = CFG['email_host_password'] +#EMAIL_USE_TLS = CFG['email_use_tls'] +#DEFAULT_FROM_EMAIL = 'admin@rowsandall.com' + +EMAIL_BACKEND = 'django_ses.SESBackend' + +AWS_SES_REGION_NAME = 'eu-west-1' +AWS_SES_REGION_ENDPOINT = 'email.eu-west-1.amazonaws.com' + +EMAIL_HOST = CFG['aws_smtp'] +EMAIL_PORT = CFG['aws_port'] +EMAIL_HOST_USER = CFG['aws_smtp_username'] +EMAIL_HOST_PASSWORD = CFG['aws_smtp_password'] EMAIL_USE_TLS = CFG['email_use_tls'] -DEFAULT_FROM_EMAIL = 'admin@rowsandall.com' +DEFAULT_FROM_EMAIL = 'info@rowsandall.com' # weather stuff