Support SMTP without authentication

pull/38/head
janeczku 9 years ago
parent 91eb7129ac
commit 82574d2118

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

Loading…
Cancel
Save