Changeset - c1677e2d9e67
[Not reviewed]
default
0 1 0
Mads Kiilerich - 5 years ago 2020-10-20 12:17:52
mads@kiilerich.com
mail: don't skip authentication just because smtp_password is empty
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/celerylib/tasks.py
Show inline comments
 
@@ -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())
0 comments (0 inline, 0 general)