diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-20 08:29:30 +0200 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2014-05-20 08:29:30 +0200 |
commit | 412bb6d1057f2b901e0462b742d54092a239735c (patch) | |
tree | efa597d5a776a96523f8eb6bedb3722c78dda171 /pyaggr3g470r | |
parent | fix for postmark (diff) | |
download | newspipe-412bb6d1057f2b901e0462b742d54092a239735c.tar.gz newspipe-412bb6d1057f2b901e0462b742d54092a239735c.tar.bz2 newspipe-412bb6d1057f2b901e0462b742d54092a239735c.zip |
bcc seems to be not working
Diffstat (limited to 'pyaggr3g470r')
-rw-r--r-- | pyaggr3g470r/emails.py | 9 |
1 files changed, 7 insertions, 2 deletions
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 |