【问题标题】:How to track emails with PHP from "Undelivered Mail Returned to Sender"如何使用 PHP 从“未投递的邮件退回给发件人”中跟踪电子邮件
【发布时间】:2018-04-05 13:31:45
【问题描述】:

我们有一个包含 50,000 封电子邮件的列表。其中一些是不存在的,但我们不知道是哪些。

当我们向该列表发送时事通讯时,有些电子邮件没有送达(因为有些收件人不存在),所以我们会收到这样的自动回复电子邮件:

邮件递送系统 很遗憾不得不通知您,您的邮件无法递送给一个或多个收件人。附在下面....

我们想以某种方式将这些通知电子邮件附加到一个 php 脚本中,以便在数据库中标记这些电子邮件,以便我们以后不再使用它们,因为这是浪费时间和资源。

我们正在寻找的脚本或技术的名称是什么?

我正在复制我们在下面收到的电子邮件。

感谢您的帮助!

Mail Delivery System <MAILER-DAEMON@gproxy1.mail.unifiedlayer.com>
Attachments5:54 AM (6 hours ago)

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to postmaster.

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

                   The mail system

<gaviglio.herve@bbox.fr>: host mx.bbox.fr[194.158.98.50] said: 550 5.1.1
    <gaviglio.herve@bbox.fr>: Recipient address rejected: User unknown in local
    recipient table (in reply to RCPT TO command)

Final-Recipient: rfc822; gaviglio.herve@bbox.fr
Original-Recipient: rfc822;gaviglio.herve@bbox.fr
Action: failed
Status: 5.1.1
Remote-MTA: dns; mx.bbox.fr
Diagnostic-Code: smtp; 550 5.1.1 <gaviglio.herve@bbox.fr>: Recipient address
    rejected: User unknown in local recipient table

【问题讨论】:

    标签: php apache email cakephp daemon


    【解决方案1】:

    没有简单的方法来处理退回的电子邮件。使用 SendGrid、MailChimp 和 Amazon SES 等邮件 API,您可能会省去很多麻烦。

    【讨论】:

      猜你喜欢
      • 2021-07-10
      • 2020-08-26
      • 2011-07-21
      • 1970-01-01
      • 1970-01-01
      • 2020-01-14
      • 2016-03-25
      • 1970-01-01
      • 2014-02-22
      相关资源
      最近更新 更多