title: Python mail puts unaccounted space in Outlook Subject line
body: <p>I've written a simple Python script which used MIMEMultipart and SMTPLib to send a mail to an array of recipients.
  The code looks something like this:</p>
  
  <pre><code>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()
  </code></pre>
  
  <p>This sends a mail successfully, but the Subject like in Outlook Mail client looks something like this:</p>
  
  <pre><code> A pretty long subject line which looks       like this
  </code></pre>