对 Swiftmailer 的退回支持

发布于 2024-11-07 04:08:42 字数 186 浏览 3 评论 0原文

我在这里看到了有关 Swiftmailer 处理退回邮件的建议,但我在文档中没有看到对此的支持。我错过了什么吗?在我看来,PHPMailer-BHM 是唯一可以立即使用此功能的选择。如果这是不正确的,请详细说明。

我这样问是因为 Swiftmailer 看起来拥有最好的文档和支持,但我不想花时间重新发明轮子,创建一个类来解析和处理 NDR。

I see recommendations for Swiftmailer for handling bounce messages here, yet I don't see the support for this in the documentation. Am I missing something? It appears to me that PHPMailer-BHM is the only option out there with this feature ready to go out of the box. If this is incorrect, please elaborate.

I am asking because Swiftmailer looks to have the best documentation and support moving forward, but I don't want to spend time re-inventing the wheel creating a class to parse and handle the NDR's.

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

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

发布评论

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

评论(2

无语# 2024-11-14 04:08:42

Swiftmailer 更关心发送电子邮件(例如,从您的脚本到处理发送的 SMTP 服务器)。 Swiftmailer 没有能力接收电子邮件,这就是退回邮件。

Swift 唯一可能收到退回邮件的情况是,如果 SMTP 服务器将电子邮件转交给该服务器,则直接拒绝该电子邮件。否则,一旦它在 SMTP 服务器中排队,Swiftmailer 就完成了它。

在现实世界中,Swiftmailer 就是您沿着邮箱走一封信。如果邮箱被焊接关闭,Swiftmailer 会告诉您,否则信件会进入邮箱,然后 Swift 就完成了。

退信是指信递员在第二天将贴有“退回发件人”字样的信封投递出去。 Swift 与此无关,因为它不接收电子邮件,它只是将它们从您的家传送到邮箱。

Swiftmailer is more concerned with sending email (e.g. from your script to an SMTP server which handles the delivery). Swiftmailer has no capacity for receiving emails, which is what a bounce is.

The only time Swift could catch a bounce is if the SMTP server it's handing the email off to rejects the email outright. Otherwise, once it's queued in the SMTP server, Swiftmailer's done with it.

In real world terms, Swiftmailer is you walking a letter down the the mailbox. If the mailbox is welded shut, Swiftmailer will tell you, but otherwise the letter goes into the mailbox and then Swift's done.

A bounce is a letter carrier coming by the next day to drop off the envelope with 'return to sender' stamped on it. Swift has nothing to do with this, as it doesn't RECEIVE emails, it only walks them from your house to the mailbox.

半城柳色半声笛 2024-11-14 04:08:42

设置Return-Path:(退回)地址Return-Path: 地址指定退回通知应发送到的位置,并使用setReturnPath() 设置消息的方法。

您只能有一个返回路径:,并且不得包含个人姓名。

退回通知将发送至以下地址:

$message->setReturnPath('[email protected]');

Setting the Return-Path: (Bounce) Address The Return-Path: address specifies where bounce notifications should be sent and is set with the setReturnPath() method of the message.

You can only have one Return-Path: and it must not include a personal name.

Bounce notifications will be sent to this address:

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