diff gpp/accounts/forms.py @ 252:e3958aacd8dd

Adding a way to expedite mail by bypassing the mail queue.
author Brian Neal <bgneal@gmail.com>
date Mon, 20 Sep 2010 00:40:01 +0000
parents ef93dc9f1992
children 767cedc7d12a
line wrap: on
line diff
--- a/gpp/accounts/forms.py	Sun Sep 19 23:55:48 2010 +0000
+++ b/gpp/accounts/forms.py	Mon Sep 20 00:40:01 2010 +0000
@@ -110,7 +110,8 @@
                 })
 
         subject = 'Registration Confirmation for ' + site.name
-        send_mail(subject, msg, admin_email, [self.cleaned_data['email']])
+        send_mail(subject, msg, admin_email, [self.cleaned_data['email']],
+                expedite=True)
         logging.info('Accounts/registration conf. email sent to %s for user %s; IP = %s' % \
                 (self.cleaned_data['email'], pending_user.username, self.ip))