title: python mail no subject coming through
body: <p>i am sending gmail via python but I do not get any subject. I realize the code I am showing you does not have any subject but i have tried many variations without success. can someone tell me how to implement a subject. The subject will be the same every time. </p>
  
  <pre><code>        fromaddr = 'XXXX@gmail.com'
          toaddrs = 'jason@XXX.com'
          msg = 'Portal Test had an error'
  
          #provide gmail user name and password
          username = 'XXXX'
          password = 'XXXXX'
  
          # functions to send an email
          server = smtplib.SMTP('smtp.gmail.com:587')
          server.ehlo()
          server.starttls()
          server.ehlo()
          server.login(username,password)
          server.sendmail(fromaddr, toaddrs, msg)
          server.quit()
  </code></pre>