所有发邮件都新开线程
This commit is contained in:
parent
14511c079a
commit
653fe6c1ea
|
@ -446,7 +446,9 @@ class Mailer < ActionMailer::Base
|
|||
|
||||
def self.deliver_mail(mail)
|
||||
return false if mail.to.blank? && mail.cc.blank? && mail.bcc.blank?
|
||||
super
|
||||
Thread.new do
|
||||
super
|
||||
end
|
||||
end
|
||||
|
||||
def self.method_missing(method, *args, &block)
|
||||
|
|
Loading…
Reference in New Issue