Commit 4c6668690e2c3a08c19684b115eb98b95aba2e0a

  • avatar
  • arvind
  • Mon Jan 20 14:03:07 IST 2014
Adding 'cc' to config file.
report.py
(1 / 1)
  
8989 subject = mailConfig.subject.format(startDate, endDate)
9090 report = mailConfig.text.format(startDate, endDate) + '\n' + report
9191 mail = gmail.GMail(mailConfig.username, mailConfig.password)
92 message = gmail.Message(subject, mailConfig.to, text=report)
92 message = gmail.Message(subject, mailConfig.to, mailConfig.cc, text=report)
9393 mail.send(message)
  
22username="user@gmail.com"
33password="yourpassword"
44to="foo@bar.org, rajesh@email.org"
5subject="Subject line"
5cc="Same format as 'to'"
66bcc="Same format as 'to'"
7subject="Subject line"
78text=""