Rails 3/delayed_job - Wanted: Basic example of delayed mail

前端 未结 3 2119
谎友^
谎友^ 2020-12-30 16:08

I\'ve been trying to figure out how to send delayed mail using delayed_job with rails 3. I\'ve tried pretty much every combination of feasible possibilities I can think of -

3条回答
  •  灰色年华
    2020-12-30 16:42

    I found in Rails 3 with mongoid that removing the handle_asynchronously line gets it to work. I was having all kinds of problems, and it appeared that delayed_job wasn't recognizing any objects within my Emailer class. Removing handle_asynchronously fixed it.

提交回复
热议问题