简体   繁体   English

通过规则发送的电子邮件被多次发送

[英]Emails via rules are sent multiple times

I created a rule to send an email to the author of the node after saving the node. 我创建了一个规则,以在保存节点后向该节点的作者发送电子邮件。 In case of new nodes and whend changed existing ones. 如果是新节点,而whend更改了现有节点。

But the mails are sent multiple times. 但是邮件被多次发送。 Sometimes at the same time and sometimes over about 3 hours. 有时会同时出现,有时会超过3个小时。 Simetimes 10 emails, sometimes 20. Simetimes 10封电子邮件,有时20封。

I don't know where I can search for a reason. 我不知道在哪里可以找到原因。

you might want to turn debugging on for your workflow (admin/config/workflow/rules/settings) and check the logs after the emails are sent (admin/reports/dblog) 您可能要打开工作流的调试(admin / config / workflow /规则/设置),并在发送电子邮件后检查日志(admin / reports / dblog)

I found out after hours of trying to solve a similar problem, that some triggers were being defined automatically in (admin/structure/trigger/workflow) for my workflow and they were saving and publishing my node again, thus creating a recursion. 经过数小时的尝试,我发现解决了一个类似的问题,即在(admin / structure / trigger / workflow)中为我的工作流自动定义了一些触发器,并且它们又保存并发布了我的节点,从而创建了递归。 Drupal stops after a few iterations of this, so a random number of messages is being sent. Drupal在几次迭代之后停止,因此正在发送随机数量的消息。 My server was sending over 40 every time I changed workflow states 每次更改工作流程状态时,我的服务器都会发送40多个消息

Also please look at your rules page and make sure you don't have any contradicting rules in your workflow that makes it run the same stuff all over again. 另外,请查看您的规则页面,并确保您的工作流程中没有任何矛盾的规则,以使其重新运行相同的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM