对于交易邮件之类的事情,有什么好的流程/约定?
这更多的是一个讨论问题,但我想知道做事务邮件之类的事情的最佳或更好的流程是什么。
目前,我正在使用在我的服务器上运行的后台处理程序服务,该服务由 cron 每 5 分钟运行一次,以发送队列中存在的邮件。但这太慢了。我说的是过程。
- 交易邮件(定义): 发送至的电子邮件、文本 应用程序的用户获取提醒、通知、警告、升级信息等。
当前的过程如下所示:
应用程序构建一个邮件对象 并附上相关信息。
然后邮件作为邮件文件发送到 smtp 服务器。(是的,整个文件)驻留在队列中。
一个 cronjob 运行它来捕获所有邮件文件,并将它们实际发送到 MTA 服务器进行发送。
我认为这个过程有点太复杂,想听听大家的想法。即时通知和提醒会更好,不是吗?
问候
This is more of a discussion question but I would like to know what the best or a better process is for doing something like transactional mail.
Currently I am using a spooler service that runs on my server that gets run by a cron every 5 minutes to send the mails that exist in the queue. But this is too slow. I am talking about the process.
- Transactional mail (definition) :
Emails, Texts that are sent to the
user of the application for reminders, notifications, warnings, upgrade info etc.
The current process is something like this:
The application builds a mail object
with the relevant information.The mail then gets sent to the smtp server to as a mail file.(yes a whole file) to reside in a queue.
A cronjob runs over it to capture all the mail files and actually sends them off to a MTA server for sending.
I think this process is a bit too complex and would like to hear anybody's thoughts on it. Notifications and reminders are better when they are instant is it not?
Regards
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了一个很好的应用程序可以做到这一点:
http://postmarkapp.com
I have found a good application that does this:
http://postmarkapp.com