Rails Rails 4 的异步邮件发送可以用了么?(查了下要 4.1 才有)

teddy · June 19, 2013 · Last by zhangrentian replied at June 19, 2013 · 3114 hits

我在 application.rb 中设置了 config.action_mailer.async = true 但是报错 NoMethodError (undefined method `async=' for ActionMailer::Base:Class):

自己找到答案了,要等 4.1 呢 http://blog.wyeworks.com/2012/11/13/rails-4-compilation-links/

其实你开个线程就可以了嘛。。

resque mailer

You need to Sign in before reply, if you don't have an account, please Sign up first.