我们有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
发布于 2017-10-24 21:18:13
没有简单的方法来处理退回的电子邮件。通过使用像SendGrid、MailChimp和Amazon这样的邮件应用编程接口,您可能会省去很多麻烦。
https://stackoverflow.com/questions/46915823
复制相似问题