本文介绍了对Swiftmailer的退回支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

我之所以问是因为Swiftmailer似乎拥有最好的文档和支持,但是我不想花时间重新发明轮子来创建一个类来解析和处理NDR.

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.

推荐答案

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

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.

Swift唯一能捕捉到反弹的地方是,如果SMTP服务器将电子邮件传递出去以完全拒绝该电子邮件.否则,一旦它在SMTP服务器中排队,Swiftmailer就完成了.

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.

在现实世界中,Swiftmailer是您在信箱中往下走的一封信.如果邮箱被焊接关闭,Swiftmailer会告诉您,否则,这封信会进入邮箱,然后Swift便完成了.

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.

退信是第二天到来的信纸运输商,它在信纸上贴有返回发件人"字样. Swift与此无关,因为它不接收电子邮件,它只会将它们从您的家中带到邮箱.

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.

这篇关于对Swiftmailer的退回支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-23 20:53