[FIX] ir.mail_server: server TLS setting overrides connect() parameter
Cfr 00bd7274c4
This commit is contained in:
@@ -242,7 +242,7 @@ class IrMailServer(models.Model):
|
||||
else:
|
||||
connection = smtplib.SMTP(smtp_server, smtp_port)
|
||||
connection.set_debuglevel(smtp_debug)
|
||||
if encryption == 'starttls':
|
||||
if smtp_encryption == 'starttls':
|
||||
# starttls() will perform ehlo() if needed first
|
||||
# and will discard the previous list of services
|
||||
# after successfully performing STARTTLS command,
|
||||
|
||||
Reference in New Issue
Block a user