Drupal Rules Scheduler 发送重复的电子邮件(Drupal 7 视图-规则集成)
我通过规则调度程序每晚发送一封电子邮件,当我手动执行时,它会按应有的方式发送一封电子邮件,但是当它按计划运行时,它会向我发送 10 封重复的电子邮件。我已经查看了所有内容,似乎找不到任何解决该问题的方法。
预先感谢您的任何建议
I am sending out a nightly email through rules scheduler, when I manually execute it sends out one email as it should, however when it runs on the schedule it sends me 10 duplicate emails. I've looked all over and can't seem to find any solution to the problem.
Thanks in advance for any suggestions
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用作业调度程序模块。在此模块中,您首先将数据插入 job_schedule 并为每个计划创建一个队列。当 crons 运行时,它开始执行每个队列并发送邮件,然后从 job_scheduler 表中删除其条目。因此它不会一次又一次地向同一个人发送相同的邮件。drupal7 中的 job_scheduler 模块中有适当的文档。就通过它吧。
Use Job scheduler module. In this module you first insert the data in job_schedule and create a queue for each schedule . when crons run it start executing each queue and send mails then it delete its entry from the job_scheduler table. hence it will not send same mail again and again to the same person.. There is proper documentation in job_scheduler module in drupal7. Just go through it.
这听起来像是规则模块中的一个错误;它有它的怪癖。我发现您已在规则问题队列中报告了此问题:http://drupal.org/node/1314916,这就是我首先要建议的。现在我知道您的问题是规则 7.x-2.x 开发与 Views 7 的集成...两者都有多个错误。我强烈怀疑这个问题与视图和规则都有同样的关系。 (10 次重复似乎不太可能是巧合,因为 10 是视图中每页结果的默认值等)
当您报告问题时,包含所有相关信息(Drupal 版本、复制步骤、写入内容)会很有帮助。到日志等)。我个人建议您看看是否可以在 Drupal 的全新安装中仅使用运行测试所需的模块来复制您的问题。如果您可以通过这种方式复制它,就可以更轻松地为开发人员提供足够的信息来识别问题并解决它。 (例如,使用 Develgenerate 创建一些节点和虚拟用户,然后创建一个非常简单的视图,例如仅五个最近节点的标题,并使用该视图作为电子邮件内容的源。它会发送 5 个副本吗?您可以需要配置本地主机邮件服务器来测试这一点。
This sounds like a bug in the Rules module; it has its quirks. I see you have reported this issue in the Rules issue queue: http://drupal.org/node/1314916, which is what I was first going to suggest. So now I know your issue is for Rules 7.x-2.x dev integration with Views 7... both of which have more than a few bugs. I strongly suspect this issue has as much to do with Views as with Rules. (The 10x repetition seems unlikely to be a coincidence since 10 is a default value for results-per-page in Views, etc)
When you report an issue, it's helpful to include all pertinent information (Drupal version, steps to replicate, what's written to the log, etc). I'd personally suggest seeing if you can replicate your issue in a clean installation of Drupal with just the modules necessary to run your test. If you can replicate it that way, it's easier to provide enough information for the developers to identify the issue and resolve it. (e.g. use Devel generate to create some nodes and dummy users, then create a very simple view, e.g. just titles of the five most recent nodes, and use that view as the source for your email content. Does it send 5 copies? You may need to configure a localhost mail server to test this.