How to implement a mailing system with Rails that sends emails in the background

↘锁芯ラ 提交于 2019-12-03 22:58:12

I think Starling and Workling will be able to assist you =) Watch this railscast: http://railscasts.com/episodes/128-starling-and-workling

You can implement the feature or rely on external services.

I have been using PostageApp for the last 2 months and I'm really happy with it. An other solution is Postmark.

Otherwise, if you want to code it, first you need a queue system. For Rails, you can use DelayedJob or Resque. Sending emails in the background is probably the most simple solution, the "problem" is dealing with failures and retry.

Have you looked at the mail-queue plugin?

http://code.google.com/p/mail-queue/

The docs seem to suggest it stores the mails in a DB table, thus avoiding #2 at least.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!