哪个队列管理器用于在PHP中发送邮件? [英] Which queue manager for sending mail in PHP?

查看:104
本文介绍了哪个队列管理器用于在PHP中发送邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在PHP插件中用PHP实现一个简单的邮件队列,该任务具有任务优先级和邮件项目的预定发送时间.我研究了一些现有的队列软件包,以及我的邮件软件包Swift的排队功能,但是考虑到我的要求的简单性以及现有邮件队列的不足,我决定使用基本队列管理器来实现自己的队列,即不是专用于邮件的队列.

我在这里可以看到任何不错的,有据可查的PHP队列管理器吗?我正在忙谷歌搜索,但是Google没有开发人员经验和评论的优势.

I need to implement a simple mail queue in PHP, with task priority and scheduled send time for mail items, inside a WordPress plugin. I have looked at some existing queue packages, as well the queuing function of my mail package, Swift, but given the simplicity of my requirements, and the inadequacies in existing mail queues, I have decided to implement my own, using a base queue manager, i.e. a queue not dedicated to mail.

Are there any decent, fairly well documented, PHP queue managers that I can look at here? I am busy Googling, but Google doesn''t have the advantage of developer experience and commentary.

推荐答案

我不能个人推荐,但是如果您需要的话很简单,自己动手.

1.让您的网页将电子邮件写入文件系统上的文件(例如,在/var/youapp/mail中)或数据库中的表.
2.设置cron作业,每x分钟运行一次php脚本.该脚本检查新条目,尝试发送它们,如果成功,则将其删除.

我过去曾经非常成功地使用过这种方法.

_________________________________
伊万·罗德里格斯(Yvan Rodrigues)
红细胞创新公司.
L''创新的Globules Rouges公司.
I can''t recommend one personally, but if your needs are simple, roll your own.

1. Have your web page write the e-mail to a file on the filesystem, like in /var/youapp/mail, or to a table in a database.
2. Set a cron job to run a php script every x minutes. The script checks for new entries, tries to send them, and deletes them if successful.

I''ve used this method very successfully in the past.

_________________________________
Yvan Rodrigues
Red Cell Innovation Inc.
L''innovation de Globules Rouges Inc.


这篇关于哪个队列管理器用于在PHP中发送邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆