From a2ce271498ebe99750d07031ff4f1211786eb077 Mon Sep 17 00:00:00 2001 From: Goffi Date: Fri, 16 Aug 2019 17:06:52 +0200 Subject: [PATCH] tools (common/email): fixed email sending after python 3 port --- sat/tools/common/email.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sat/tools/common/email.py b/sat/tools/common/email.py index 292cc2f0..e2c7fd8e 100644 --- a/sat/tools/common/email.py +++ b/sat/tools/common/email.py @@ -62,7 +62,7 @@ def sendEmail(config, to_emails, subject="", body="", from_email=None): 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,