mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-02 22:39:59 +00:00
Fix #436
This commit is contained in:
parent
2850a84bbc
commit
8716054dcf
@ -164,8 +164,8 @@ def send_raw_email(kindle_mail, msg):
|
|||||||
try:
|
try:
|
||||||
timeout = 600 # set timeout to 5mins
|
timeout = 600 # set timeout to 5mins
|
||||||
|
|
||||||
org_stderr = smtplib.stderr
|
org_stderr = sys.stderr
|
||||||
smtplib.stderr = StderrLogger()
|
sys.stderr = StderrLogger()
|
||||||
|
|
||||||
if use_ssl == 2:
|
if use_ssl == 2:
|
||||||
mailserver = smtplib.SMTP_SSL(settings["mail_server"], settings["mail_port"], timeout)
|
mailserver = smtplib.SMTP_SSL(settings["mail_server"], settings["mail_port"], timeout)
|
||||||
|
Loading…
Reference in New Issue
Block a user