cubicweb/cwconfig.py
changeset 12722 1a5eb9a9f5b4
parent 12709 280c9db41038
parent 12719 9fb4a71f119d
child 12738 a54037a68b14
--- a/cubicweb/cwconfig.py	Thu Aug 01 09:20:40 2019 +0200
+++ b/cubicweb/cwconfig.py	Tue Aug 06 16:43:46 2019 +0200
@@ -1248,7 +1248,7 @@
                 return False
             for msg, recipients in msgs:
                 try:
-                    smtp.sendmail(fromaddr, recipients, msg.as_string())
+                    smtp.sendmail(fromaddr, recipients, msg.as_bytes())
                 except Exception as ex:
                     self.exception("error sending mail to %s (%s)",
                                    recipients, ex)