From 492f69b14914fd042e716a20c3d830633d85c64f Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 4 Oct 2014 16:53:40 +0200 Subject: [PATCH] Actually use the smtp port from settings fix #4003 --- couchpotato/core/notifications/email_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/notifications/email_.py b/couchpotato/core/notifications/email_.py index a63eb3d..d0c6516 100644 --- a/couchpotato/core/notifications/email_.py +++ b/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")