如何在 PHP 中处理电子邮件地址状态?

发布于 2024-09-26 02:18:34 字数 394 浏览 2 评论 0原文

我正在开发一个电子邮件营销系统,该系统允许用户向多个地址发送电子邮件。我有一个需要完成的任务列表,可能我会对这些任务有很多问题。这是其中之一:正如我所说,用户正在向多个地址发送电子邮件。 我想检查每封发出的电子邮件,收件人地址是否阻止该电子邮件以及阻止的原因。

通常这是从邮件传送系统返回的电子邮件。我认为解决方案必须围绕以某种方式检查传入电子邮件的想法。请帮助我找到最好的解决方案。

谢谢

**
  • 更新:

**

我将更新问题的内容。我忘了说这些电子邮件是从有效的 SMTP 服务器使用用户名和密码发送的,应该有一种方法可以以某种方式从 PHP 获取收件箱的内容。

I'm developing an email marketing system which allows users to send emails to multiple addresses. I have a list of tasks that need to be done, probably I will have many questions regarding to these tasks. Here's one of them: As I said, users are sending out emails to multiple addresses. I want to check for every sent out emails if the receipient address blocks the email and the reason of the block.

Usually this is coming back to an email from Mail Delivery System. I think the solution has to be somewhere around the idea of checking the incoming emails somehow. Please help me finding the best solution.

Thanks

**
  • UPDATE:

**

I'm going to update the content of the question. I forgot to say that these emails are sent our from a valid SMTP server with username and password, there should be a way to get the content of inbox from PHP somehow.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

野の 2024-10-03 02:18:34

我想检查每封发出的电子邮件,收件人地址是否阻止该电子邮件以及阻止的原因。

忘了它。大多数垃圾邮件过滤器只会吞掉不需要的电子邮件而不做任何评论(以免向垃圾邮件发送者提供任何关于其成功或失败的提示)。

此外,您将无法查明用户是否直接立即删除了您的电子邮件,或者在其电子邮件客户端中设置了删除它的规则。除非收件人告诉您,否则您永远无法获得此信息。

只有极小一部分被拒绝的电子邮件实际上会导致回复发送到电子邮件发件人地址 - 如果有的话!就我而言,我的邮件曾被垃圾邮件过滤器吞没,但我从未收到过回复说“您的电子邮件已被过滤为垃圾邮件”。你?

可以做的是捕获因技术原因而投递失败的电子邮件 - 未知收件人、收件人邮箱已满、中继失败...这些将作为“mailer-daemon”错误消息返回到发件人地址,或 errors-to 标头中指定的地址。您可以使用 PHP 解析这些邮件。但我认为这不是你想要的。

I want to check for every sent out emails if the receipient address blocks the email and the reason of the block.

Forget it. Most spam filters will just swallow unwanted E-Mail without comment (so as to not give spammers any hint about their success or failure).

Also, you won't be able to find out if a user simply deleted your E-Mail straight away, or had a rule set up in their E-Mail client to delete it. This is information that you will never get hold of unless the recipient tells you.

Only a tiniest fraction of rejected E-Mails will actually cause a reply to go out to the E-Mail sender address - if any! I, for one, have had mails swallowed by spam filters, but I've never received a reply saying "your E-Mail was filtered as spam". Have you?

What you can do is catch E-Mails whose delivery failed for technical reasons - unknown recipient, recipient mailbox full, relaying failed... Those will be returned as "mailer-daemon" error messages to either the sender address, or the address specified in the errors-to header. Those mails you could parse using PHP. But I don't think this is what you want.

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