Mercurial > libervia-backend
diff sat/tools/common/email.py @ 3034:ca6c695c65da
tools (common/email): fixed email sending after python 3 port
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 16 Aug 2019 17:06:52 +0200 |
parents | ab2696e34d29 |
children | 9d0df638c8b4 |
line wrap: on
line diff
--- a/sat/tools/common/email.py Fri Aug 16 17:06:51 2019 +0200 +++ b/sat/tools/common/email.py Fri Aug 16 17:06:52 2019 +0200 @@ -62,7 +62,7 @@ email_host.encode("utf-8"), email_from.encode("utf-8"), [email.encode("utf-8") for email in to_emails], - msg.as_string(), + msg.as_bytes(), senderDomainName=email_sender_domain.encode("utf-8") if email_sender_domain else None, port=email_port,