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:
parent
8d17242b82
commit
d2378ea641
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue