Rails 关于 actionmailer 问题

hmilym · July 28, 2014 · Last by dddd1919 replied at July 28, 2014 · 1535 hits

我现在有一个需求 背景: 提醒邮件,每天发送邮件量很大,且收件人人数有限。

目标: 降低每天邮件发送数量。

做法: 对每一个时间周期内的所有邮件按照收件人合并后发送。

问题: 怎么才能 拦截到 actionmailer 的 deliver 方法,用自己写的拦截方法代替?

把要发送的邮件缓存起来,用定时任务统一发送

You need to Sign in before reply, if you don't have an account, please Sign up first.