1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-01 05:49:58 +00:00
This commit is contained in:
OzzieIsaacs 2018-01-13 14:11:59 +01:00
parent 2850a84bbc
commit 8716054dcf

View File

@ -164,8 +164,8 @@ def send_raw_email(kindle_mail, msg):
try:
timeout = 600 # set timeout to 5mins
org_stderr = smtplib.stderr
smtplib.stderr = StderrLogger()
org_stderr = sys.stderr
sys.stderr = StderrLogger()
if use_ssl == 2:
mailserver = smtplib.SMTP_SSL(settings["mail_server"], settings["mail_port"], timeout)