I wrote a simple Python script that used MIMEMultipart and SMTPLib to send mail to the recipient array. The code looks something like this:
import smtplib import sys from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart sender=' foo@bar.com ' recipients=' someguy@bar.com ' subject='A pretty long subject line which looks like this' mail_server='microsfot_exchange_server_ip' msg = MIMEMultipart('alternative') body='Body of the Email' msg['Subject'] = subject msg['from'] = sender msg['to'] = ", ".join(recipients) s = smtplib.SMTP(mail_server) s.sendmail(sender, recipients, msg.as_string()) s.quit()
This sends mail successfully, but the theme, like in Outlook Mail, looks something like this:
A pretty long subject line which looks like this
source share