# HG changeset patch # User Goffi # Date 1457524466 -3600 # Node ID faa8427dd032cbacd7ab86552d2a20f780a7b82a # Parent d1615f79dfe8ef782624128b8ddfff073df5976f plugin misc account: fixed handling of None/empty values in sendEmails.sendEmail diff -r d1615f79dfe8 -r faa8427dd032 src/plugins/plugin_misc_account.py --- a/src/plugins/plugin_misc_account.py Wed Mar 09 12:11:35 2016 +0100 +++ b/src/plugins/plugin_misc_account.py Wed Mar 09 12:54:26 2016 +0100 @@ -284,10 +284,10 @@ email_from.encode("utf-8"), [email.encode("utf-8") for email in recipients], msg.as_string(), - senderDomainName=email_sender_domain.encode("utf-8"), + senderDomainName=email_sender_domain.encode("utf-8") if email_sender_domain else None, port=email_port, - username=email_username.encode("utf-8"), - password=email_password.encode("utf-8"), + username=email_username.encode("utf-8") if email_username else None, + password=email_password.encode("utf-8") if email_password else None, requireAuthentication=email_starttls, requireTransportSecurity=email_auth)