开发者

How can i send emails with delayed_job

开发者 https://www.devze.com 2023-01-16 10:44 出处:网络
I\'m trying to use delayed_job to send emails from an input form. In my view i have replaced the line

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

精彩评论

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