Allow EMAIL_USE_SSL to be turned on

LA's mailhost uses implicit-SSL rather than explicit-SSL (STARTTLS) so
we need this available as an option
This commit is contained in:
James Polley 2018-07-02 00:39:58 +10:00
parent 3c31249759
commit 3810f02904

View file

@ -39,7 +39,8 @@ EMAIL_PORT = os.environ.get('EMAIL_PORT', 25)
EMAIL_HOST_USER = os.environ.get('EMAIL_HOST_USER', None)
EMAIL_HOST_PASSWORD = os.environ.get('EMAIL_HOST_PASSWORD', None)
DEFAULT_FROM_EMAIL = os.environ.get('DEFAULT_FROM_EMAIL', 'webmaster@localhost')
EMAIL_USE_TLS = True
EMAIL_USE_TLS = os.environ.get('EMAIL_USE_TLS', True)
EMAIL_USE_SSL = os.environ.get('EMAIL_USE_SSL', False)
SECRET_KEY = os.environ.get('DJANGO_SECRET_KEY', None)