if mail_state and mail_state == 'exception':
raise osv.except_osv(_("Cannot send email: no outgoing email server configured.\nYou can configure it under Settings/General Settings."), user.name)
else:
- raise osv.except_osv(_("Mail sent to user:"), user.name)
+ raise osv.except_osv(_("Mail sent to:"), user.email)
return True