diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-29 10:09:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-04-29 10:09:39 +0000 |
commit | d2378ea641c0b04c56e93f9e8462e359cd003dd3 (patch) | |
tree | 81c3a70961ef2269a613d8514ba71a7de9731c7a /lib/tasks | |
parent | 8d17242b8263b04eb0e9a56e1d560c800409bbe3 (diff) | |
download | redmine-d2378ea641c0b04c56e93f9e8462e359cd003dd3.tar.gz redmine-d2378ea641c0b04c56e93f9e8462e359cd003dd3.zip |
Don't send test email asynchronously.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9583 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/tasks')
-rw-r--r-- | lib/tasks/email.rake | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/tasks/email.rake b/lib/tasks/email.rake index 12cd37faa..0a627ec87 100644 --- a/lib/tasks/email.rake +++ b/lib/tasks/email.rake @@ -176,7 +176,9 @@ END_DESC ActionMailer::Base.raise_delivery_errors = true begin - Mailer.deliver_test_email(user) + Mailer.with_synched_deliveries do + Mailer.deliver_test_email(user) + end puts l(:notice_email_sent, user.mail) rescue Exception => e abort l(:notice_email_error, e.message) |