在不发送消息的情况下测试 Drupal 消息传递和通知

发布于 2024-09-26 21:46:16 字数 128 浏览 0 评论 0原文

我正在升级 drupal 网站。有数千名用户,并且正在使用消息传递和通知。偶然间,我向用户发送了大量通知。有什么方法可以防止电子邮件发送给用户并仍然执行升级?我不想禁用这些模块,因为我需要启用它们来进行升级。

任何帮助表示赞赏

I'm upgrading a drupal website. There are thousands of users and it is using messaging and notifications. By accident I have sent out loads of notifications to users. Is there any way I can prevent the emails going out to users and still carry out my upgrades? I don't want to disable the modules as I need them enabled to do the upgrades.

Any help appreciated

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

风追烟花雨 2024-10-03 21:46:16

如果您打算在站点的测试/登台实例上暂时禁用/重新路由邮件,请查看提供的各种选项在这篇文章中

如果您谈论的是实时站点,请小心 - 这些方法主要适用于 Drupal 发送的所有邮件,因此您还可以禁用其他邮件,例如“重置密码”请求。

If you mean to temporarily disable/reroute mails on a test/staging instance of your site, take a look at the various options provided in this post.

If you are talking about a live site, be careful - those methods mostly apply to all mails send by Drupal, so you would also disable other mails like e.g. a 'reset password' request.

水波映月 2024-10-03 21:46:16

通常在 Drupal 中,邮件会立即发送到邮件服务器。在某些情况下,人们在 Drupal 中设置队列来发送邮件。当 cron.php 运行时,这些邮件将从队列中发送出去(例如一次可能 50 到 100 封)。

您是否正在使用这些模块(或类似的模块)?

http://drupal.org/project/queue_mail

http://drupal.org/project/mailq

如果是,那么您也许可以“清空”队列中任何待处理的电子邮件。

一般来说,您可以在升级时通过阻止计算机上的 smtp 端口(通常是端口 25)来确保邮件不被发送。您可以通过制定临时防火墙规则轻松阻止端口。

您的邮件服务器上可能还有一个队列。因此,您也许可以访问网络服务器并删除所有尚未发送的待处理电子邮件。

Usually in Drupal, mail is sent out instantaneously to the mailserver. In some situations, people setup queues in Drupal to send mail. These mails are then sent out from the queue (maybe 50 to 100 at a time for example) when the cron.php runs.

Are you using any of these modules (or similar ones)?

http://drupal.org/project/queue_mail

http://drupal.org/project/mailq

If you are, then you might be able to "empty" the queue for any pending emails.

In general, you can make sure that mails are not sent by blocking the smtp port (usually port 25) on your computer while you are doing an upgrade. You can easily block the port by making a temporary firewall rule.

There might be also be a queue on your mailserver. So you might be able to go to the webserver and delete any pending emails that have not been sent out yet.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文