From 412bb6d1057f2b901e0462b742d54092a239735c Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Tue, 20 May 2014 08:29:30 +0200 Subject: bcc seems to be not working --- pyaggr3g470r/emails.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'pyaggr3g470r') diff --git a/pyaggr3g470r/emails.py b/pyaggr3g470r/emails.py index 42d0fd01..6f424c31 100644 --- a/pyaggr3g470r/emails.py +++ b/pyaggr3g470r/emails.py @@ -93,8 +93,13 @@ def information_message(subject, plaintext): emails = [user.email for user in users] if conf.ON_HEROKU: # Postmark has a limit of twenty recipients per message in total. - for i in xrange(0, len(emails), 20): - send_heroku(bcc=", ".join(emails[i:i+20]), subject=subject, plaintext=plaintext) + #for i in xrange(0, len(emails), 20): + #send_heroku(bcc=", ".join(emails[i:i+20]), subject=subject, plaintext=plaintext) + for user in users: + try: + send_heroku(user=user, subject=subject, plaintext=plaintext) + except: + continue else: pass -- cgit