[root] mail to simple users should be synchronous

This commit is contained in:
Benjamin Dauvergne 2011-05-06 14:32:01 +00:00
parent 782ec52702
commit ba7609030e
1 changed files with 3 additions and 6 deletions

View File

@ -890,11 +890,9 @@ administrator'))
}
if welcome:
emails.custom_ezt_email('welcome-email', data, identity.email,
fire_and_forget = True)
emails.custom_ezt_email('welcome-email', data, identity.email)
else:
emails.custom_ezt_email('password-email', data, identity.email,
fire_and_forget = True)
emails.custom_ezt_email('password-email', data, identity.email)
def forgot_password_message [html] (self):
template.html_top(_('Lost Password'))
@ -1129,8 +1127,7 @@ administrator'))
}
get_logger().info('Forgot identifier: reminded email %r of its accounts' % email)
try:
emails.custom_ezt_email('identifier-email', data, email,
fire_and_forget = True)
emails.custom_ezt_email('identifier-email', data, email)
except:
return None, _('Error when sending the mail')
get_session().message = ('info', _('Your identifiers have been send to %s'))