# HG changeset patch # User Mads Kiilerich # Date 2020-10-20 12:17:52 # Node ID c1677e2d9e675f927dd106326807fbace13c123d # Parent 9a0c41175e66ffb14b81d20207f01abd5d2e6ce4 mail: don't skip authentication just because smtp_password is empty diff --git a/kallithea/lib/celerylib/tasks.py b/kallithea/lib/celerylib/tasks.py --- a/kallithea/lib/celerylib/tasks.py +++ b/kallithea/lib/celerylib/tasks.py @@ -337,7 +337,7 @@ def send_email(recipients, subject, body smtp_serv.ehlo() # populate esmtp_features smtp_serv.esmtp_features["auth"] = smtp_auth - if smtp_username and smtp_password: + if smtp_username and smtp_password is not None: smtp_serv.login(smtp_username, smtp_password) smtp_serv.sendmail(app_email_from, recipients, msg.as_string())