开发者

How can i send emails with delayed_job

I'm trying to use delayed_job to send emails from an input form. In my view i have replaced the line

Emailer.deliver_signup(@usercontact)

with

Emailer.send开发者_如何学C_later(:deliver_signup, @usercontact)

but when i run the job with rake jobs:work, i get: undefined method 'deliver_signup' for "CLASS:Emailer":String

What am I doing wrong? (Note that the code works without delayed_job)


Delayed job mailer might help rather than trying to implement the details yourself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜