使用 php 检查退回邮件
我需要检查邮件是否被退回邮件。
有一个库可以做到这一点。 http://sourceforge.net/projects/bmh/
但我的问题如下:
- 以上库将打开实际的邮箱并从中获取退回的邮件。
- 但就我而言,我有一个文本文件,其中还有带有标题的完整电子邮件的来源。我需要检查该特定邮件而不是整个邮箱。
- 那么我如何才能将该库与普通文本文件一起使用,它们具有检查存储在本地驱动器中的 EML 文件的功能,但我不想使用它,我只需从文本文件中读取文本即可。
I need to check whether mail is bounced mail or not.
There one library available which can do this. http://sourceforge.net/projects/bmh/
But my problem if as below:
- Above library will open the actual mail box and fetch the bounced mails from it.
- But in my case I have one text file in which source of the full email with header also. And I need to check for that particular mail not whole mailbox.
- So how can I use that library with the normal text file, they have a functionality to check EML files stored in local drive but I don't want to use that, I just have to read the text from text file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
电子邮件会被退回到某个邮箱,因此如果不阅读该邮箱,您就无法检测到它已被退回。您也许能够直接读取邮件软件的数据文件,但不能保证您的邮件软件不会更改其存储文件的方式。
The email gets bounced to a mailbox, so you can't detect that it has bounced without reading that mailbox. You might be able to read your mail software's data files directly, but there is no guarantee your mail software won't change how it stores your files.