Mercurial > libervia-backend
changeset 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 | 0d55a52056f7 |
children | 25af53e2990a |
files | sat/tools/common/email.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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,