From d2378ea641c0b04c56e93f9e8462e359cd003dd3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 29 Apr 2012 10:09:39 +0000 Subject: [PATCH] Don't send test email asynchronously. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@9583 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/tasks/email.rake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) -- 2.39.5