title: Specify a sender when sending mail with Python (smtplib)
body: <p>I have a very simple piece of code (just for testing):</p>
  
  <pre><code>import smtplib
  import time
  
  server = 'smtp.myprovider.com'
  recipients = ['johndoe@somedomain.com']
  sender = 'me@mydomain.com'
  message = 'Subject: [PGS]: Results\n\nBlaBlaBla'
  
  session = smtplib.SMTP(server)
  
  session.sendmail(sender,recipients,message);
  </code></pre>
  
  <p>This works but the problem is that e-mail clients don't display a sender.
  I want to be able to add a sender name to the e-mail. Suggestions?</p>