title: Emailing multiple people from a config file
body: <p>I'm writing a program which emails multiple people and it takes the addresses from a config file. The problem is that every time it runs it only takes to first address and sends it to that one. By the way this is using the configparser modual in python.</p>
  
  <p>heres my code:</p>
  
  <pre><code>reporter_email = '%s' %config.get("email", "reporter_email")
  notification_emails = ['%s' %(config.get("email", "notification_emails"))]
  to = '%s' %config.get("email", "to")
  subject = '%s' %config.get("email", "subject") 
  body = ('''%s\n
  %s
  %s''' %(config.get("email", "intro_body"), str(fileNames), config.get("email", "con_body")))
  
  to = "To: %s\n" %(to)
  subject = "Subject: %s\n\n" %(subject)
  
  smtpObj = smtplib.SMTP('%s' %config.get("email", "portal"), 25)
  smtpObj.sendmail(reporter_email, notification_emails, to + subject + body)         
  smtpObj.quit()
  </code></pre>