Commit 82574d21 authored by janeczku's avatar janeczku

Support SMTP without authentication

parent 91eb7129
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment