Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Add SSL support for email #452

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Conversation

estevopaz
Copy link

diff --git a/conf/defaults.cfg b/conf/defaults.cfg
index 4daeab5..b8b2661 100644
--- a/conf/defaults.cfg
+++ b/conf/defaults.cfg
@@ -90,6 +90,7 @@ host = localhost
 port = 25

 # Send mail with an encrypted connection
+usessl = false
 usetls = false

 # Username for mail
diff --git a/ratticweb/settings.py b/ratticweb/settings.py
index 55c35ca..d8853b5 100644
--- a/ratticweb/settings.py
+++ b/ratticweb/settings.py
@@ -304,6 +304,7 @@ EMAIL_HOST = config.get('email', 'host')
 EMAIL_PORT = config.get('email', 'port')
 EMAIL_HOST_USER = config.get('email', 'user')
 EMAIL_HOST_PASSWORD = config.get('email', 'password')
+EMAIL_USE_SSL = confgetbool('email', 'usessl', False)
 EMAIL_USE_TLS = confgetbool('email', 'usetls', False)
 DEFAULT_FROM_EMAIL = config.get('email', 'from_email')

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants