1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-25 17:40:31 +00:00

Support SMTP without authentication

This commit is contained in:
janeczku 2016-06-17 21:32:00 +02:00
parent 91eb7129ac
commit 82574d2118

View File

@ -126,6 +126,7 @@ def send_mail(book_id, kindle_mail):
mailserver.starttls() mailserver.starttls()
mailserver.ehlo() mailserver.ehlo()
if settings["mail_password"]:
mailserver.login(settings["mail_login"], settings["mail_password"]) mailserver.login(settings["mail_login"], settings["mail_password"])
mailserver.sendmail(settings["mail_login"], kindle_mail, msg) mailserver.sendmail(settings["mail_login"], kindle_mail, msg)
mailserver.quit() mailserver.quit()