imap_search 搜索所有失败的递送
如何搜索所有退回的邮件?
我试过这个。 imap_search($inbox,"主题失败")
但它无法匹配那些具有不同主题的内容,如“无法投递”、“邮政局长”等
how to search all emails that bounced?
i tried this. imap_search($inbox,"SUBJECT failed")
but it could not match those that has different subject like "undeliverable" ,"postmaster" etc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些电子邮件都应该有一个如下所示的标头:
因此,要找到它们,您需要发出一个 IMAP 命令,例如:
不幸的是,php 的
imap_search
不允许您发出HEADER< /code> 搜索,据我所知。因此,您可能无法尝试将
SUBJECT
术语拼凑在一起......Those emails should all have a header that looks like this:
So to find them, you need to issue an IMAP command like:
Unfortunately, php's
imap_search
doesn't allow you to issue aHEADER
search, as far as I know. So you're probably stuck trying to patch togetherSUBJECT
terms...