Vote #62609
完了Asynchronous email delivery
0%
説明
As suggested at http://www.datanoise.com/articles/2006/7/14/asynchronous-email-delivery , the email delivery delay experienced by users can be almost eliminated creating a new Thread to handle the delivery.
This code at the public part of Mailer.rb model is the most simplistic way to achieve it :
@alias_method :old_deliver, :deliver! unless method_defined?(:old_deliver)
def deliver!()
Thread.start(mail) do |email|
old_deliver
end
end@
journals
Added in r2339. Use :async_smtp instead of :smtp to enable asynchronous email delivery.
--------------------------------------------------------------------------------
related_issues
relates,Closed,4228,no notification on issue creation by mail with redmine:email:receive_imap
relates,Closed,5058,reminder mails are not sent when delivery_method is :async_smtp