Mercurial > public > sg101
diff gpp/core/functions.py @ 180:aef00df91165
Implement #63, add a queued email facility.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 21 Mar 2010 20:33:33 +0000 |
parents | b7ac381996e8 |
children | 500e5875a306 |
line wrap: on
line diff
--- a/gpp/core/functions.py Wed Mar 17 03:18:53 2010 +0000 +++ b/gpp/core/functions.py Sun Mar 21 20:33:33 2010 +0000 @@ -13,7 +13,9 @@ log all emails. """ - if settings.GPP_SEND_EMAIL: + if settings.MAILER_ENQUEUE_MAIL: + mailer.enqueue_mail(subject, message, from_email, recipient_list) + elif settings.GPP_SEND_EMAIL: django.core.mail.send_mail(subject, message, from_email, recipient_list, fail_silently, auth_user, auth_password)