Asynchronous Actionmailer in Rails

后端 未结 2 1847
心在旅途
心在旅途 2021-01-07 09:31

I\'ve noticed some of my actions (on a development environment) take a little while to load up as an email they require an email notification (through Google\'s servers). D

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-07 10:04

    I've just released a gem, Mailhopper, that queues email in your database for asynchronous sending plus optional archiving. A second gem, DelayedMailhopper, queues and sends these emails using DelayedJob.

    I developed this approach to be more robust than DelayedJob alone, as explained here:

    http://www.cerebris.com/blog/2011/09/07/tame-rails-email-dragons-with-mailhopper/

提交回复
热议问题