Don't send test email asynchronously.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9583 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-04-29 10:09:39 +00:00
parent 8d17242b82
commit d2378ea641
1 changed files with 3 additions and 1 deletions

View File

@ -176,7 +176,9 @@ END_DESC
ActionMailer::Base.raise_delivery_errors = true ActionMailer::Base.raise_delivery_errors = true
begin begin
Mailer.deliver_test_email(user) Mailer.with_synched_deliveries do
Mailer.deliver_test_email(user)
end
puts l(:notice_email_sent, user.mail) puts l(:notice_email_sent, user.mail)
rescue Exception => e rescue Exception => e
abort l(:notice_email_error, e.message) abort l(:notice_email_error, e.message)