comparison 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
comparison
equal deleted inserted replaced
251:8525fb4109cc 252:e3958aacd8dd
108 'username' : pending_user.username, 108 'username' : pending_user.username,
109 'admin_email' : admin_email, 109 'admin_email' : admin_email,
110 }) 110 })
111 111
112 subject = 'Registration Confirmation for ' + site.name 112 subject = 'Registration Confirmation for ' + site.name
113 send_mail(subject, msg, admin_email, [self.cleaned_data['email']]) 113 send_mail(subject, msg, admin_email, [self.cleaned_data['email']],
114 expedite=True)
114 logging.info('Accounts/registration conf. email sent to %s for user %s; IP = %s' % \ 115 logging.info('Accounts/registration conf. email sent to %s for user %s; IP = %s' % \
115 (self.cleaned_data['email'], pending_user.username, self.ip)) 116 (self.cleaned_data['email'], pending_user.username, self.ip))
116 117
117 return pending_user 118 return pending_user
118 119