Zoho emails use port 587; support zohomail.com too

This commit is contained in:
Chris Caron 2020-12-26 11:36:39 -05:00
parent 83e3fdc048
commit 21d7ef1ff4

View File

@ -220,21 +220,22 @@ EMAIL_TEMPLATES = (
},
),
# Zoho Mail
# Zoho Mail (Free)
(
'Zoho Mail',
re.compile(
r'^((?P<label>[^+]+)\+)?(?P<id>[^@]+)@'
r'(?P<domain>zoho\.com)$', re.I),
r'(?P<domain>zoho(mail)?\.com)$', re.I),
{
'port': 465,
'port': 587,
'smtp_host': 'smtp.zoho.com',
'secure': True,
'secure_mode': SecureMailMode.SSL,
'secure_mode': SecureMailMode.STARTTLS,
'login_type': (WebBaseLogin.EMAIL, )
},
),
# SendGrid (Email Server)
# You must specify an authenticated sender address in the from= settings
# and a valid email in the to= to deliver your emails to