Lukas J <[email protected]> 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"] = "[email protected]" msg["cc"] = "äöü <[email protected]>" msg["From"] = "[email protected]" msg["Subject"] = "test" msg.as_string() ---------- _______________________________________ Python tracker <[email protected]> <https://bugs.python.org/issue35985> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
