Commit 4c6668690e2c3a08c19684b115eb98b95aba2e0a
- Diff rendering mode:
- inline
- side by side
report.py
(1 / 1)
  | |||
89 | 89 | subject = mailConfig.subject.format(startDate, endDate) | |
90 | 90 | report = mailConfig.text.format(startDate, endDate) + '\n' + report | |
91 | 91 | 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) | ||
93 | 93 | mail.send(message) |
sampleMailConfig.py
(2 / 1)
  | |||
2 | 2 | username="user@gmail.com" | |
3 | 3 | password="yourpassword" | |
4 | 4 | to="foo@bar.org, rajesh@email.org" | |
5 | subject="Subject line" | ||
5 | cc="Same format as 'to'" | ||
6 | 6 | bcc="Same format as 'to'" | |
7 | subject="Subject line" | ||
7 | 8 | text="" |