title: python: smtp with TLS delivers no message
body: <p>I'm trying to send an email through the office365 server.  The email is properly delivered, however the message is not attached</p>
  
  <p>Assistance is most appreciated</p>
  
  <pre><code>import smtplib
  
  to = "me@gmail.com"
  office365_user = 'announcement@somewhere.com'
  office365_pwd = 'password'
  
  smtpserver = smtplib.SMTP("smtp.office365.com",587)
  smtpserver.ehlo()
  smtpserver.starttls()
  smtpserver.ehlo()
  smtpserver.login(office365_user,office365_pwd)
  msg = "This is a test email \n"
  smtpserver.sendmail(office365_user, to, msg)
  smtpserver.close()
  </code></pre>