使用 php 检查退回邮件

发布于 2024-10-03 13:00:19 字数 352 浏览 0 评论 0原文

我需要检查邮件是否被退回邮件。

有一个库可以做到这一点。 http://sourceforge.net/projects/bmh/

但我的问题如下:

  1. 以上库将打开实际的邮箱并从中获取退回的邮件。
  2. 但就我而言,我有一个文本文件,其中还有带有标题的完整电子邮件的来源。我需要检查该特定邮件而不是整个邮箱。
  3. 那么我如何才能将该库与普通文本文件一起使用,它们具有检查存储在本地驱动器中的 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:

  1. Above library will open the actual mail box and fetch the bounced mails from it.
  2. 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.
  3. 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 技术交流群。

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

发布评论

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

评论(1

七色彩虹 2024-10-10 13:00:19

电子邮件会被退回到某个邮箱,因此如果不阅读该邮箱,您就无法检测到它已被退回。您也许能够直接读取邮件软件的数据文件,但不能保证您的邮件软件不会更改其存储文件的方式。

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.

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