Lukas J <postboten...@gmail.com> added the comment: Minimal example:
import email.policy import email.mime.text responsehtml = "<html>somehtmlbody</html>" msg = email.mime.text.MIMEText(responsehtml, "html", policy=email.policy.EmailPolicy()) msg["to"] = "t...@example.com" msg["cc"] = "äöü <f...@bar.com>" msg["From"] = "f...@bar.com" msg["Subject"] = "test" msg.as_string() ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue35985> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com