I\'ve been using this Python2 code for many years:
from email import mime msg = mime.multipart.MIMEMultipart("alternative")
This code n