Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(685)

Unified Diff: gce/uploader_mail.py

Issue 2351133003: DevTools FE uploader: fix sending mail to multiple recipients (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« .gitignore ('K') | « .gitignore ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gce/uploader_mail.py
diff --git a/gce/uploader_mail.py b/gce/uploader_mail.py
index f1fd73bef62496b6b0b99403cfa05591dcbc5de9..6d0bfbb7e5adcf7f394117d883f6900e521371f2 100644
--- a/gce/uploader_mail.py
+++ b/gce/uploader_mail.py
@@ -34,7 +34,8 @@ def SendMail(config, subject, body, log_attachment=None):
server = smtplib.SMTP('smtp.gmail.com:587')
server.starttls()
server.login(config['FROM_ADDRESS'], config['PASSWORD'])
- server.sendmail(config['FROM_ADDRESS'], config['TO_ADDRESS'], message.as_string())
+ recipients = config['TO_ADDRESS'].split(',')
+ server.sendmail(config['FROM_ADDRESS'], recipients, message.as_string())
server.quit()
def SendErrorMail(config, reason, repeat, logpath):
« .gitignore ('K') | « .gitignore ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698