Browse Source

Actually use the smtp port from settings

fix #4003
pull/3376/merge
Ruud 11 years ago
parent
commit
492f69b149
  1. 2
      couchpotato/core/notifications/email_.py

2
couchpotato/core/notifications/email_.py

@ -42,7 +42,7 @@ class Email(Notification):
# Open the SMTP connection, via SSL if requested
log.debug("Connecting to host %s on port %s" % (smtp_server, smtp_port))
log.debug("SMTP over SSL %s", ("enabled" if ssl == 1 else "disabled"))
mailserver = smtplib.SMTP_SSL(smtp_server) if ssl == 1 else smtplib.SMTP(smtp_server)
mailserver = smtplib.SMTP_SSL(smtp_server, smtp_port) if ssl == 1 else smtplib.SMTP(smtp_server, smtp_port)
if starttls:
log.debug("Using StartTLS to initiate the connection with the SMTP server")

Loading…
Cancel
Save