title: In python's smtplib why isn't the subject or From field set?
body: <p>can anyone see why the following code sends emails successfully but it shows up as being from the email address of the sender instead of the name of the sender in the recipients inbox, and the subject shows up as "No Subject" in their inbox. Thanks in advance.</p>
  
  <pre><code>def send_email(destination, subject, message):
      from_who = "My Name"
      to_send = """\From: %s\nTo: %s\nSubject: %s\n\n%s""" % (from_who, destination, subject, message)
      try:
          server = smtplib.SMTP("smtp.gmail.com", 587)
          server.ehlo()
          server.starttls()
          server.login(my_email_addr, my_pwrd)
          server.sendmail(from_who, destination, message)
          server.close()
      except:
          print "failed"
  </code></pre>