PHP 电子邮件标头 - 传送选项
我已将以下代码添加到发送电子邮件的 PHP 邮件应用程序中:
$email_header .= "Disposition-Notification-To: $from";
$email_header .= "X-Confirm-Reading-To: $from";
但是,我们没有收到任何“已送达”或“已读”确认。
有什么想法吗?
谢谢,
H.
I've added the following code to our PHP Mail app which sends out emails:
$email_header .= "Disposition-Notification-To: $from";
$email_header .= "X-Confirm-Reading-To: $from";
However, we are not receiving any 'Delivered' or 'Read' confirmations.
Any thoughts?
Thanks,
H.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您没有收到任何确认的原因是大多数人选择不发送已读回执。如果您可以从您的服务器影响是否发生这种情况,则垃圾邮件发送者可以轻松识别活动和非活动电子邮件地址。
但是,如果启用了发送已读回执,这可能会失败的另一个原因是您需要在每行末尾添加一个新行:
The reason that you are not receiving any confirmations is that most people choose not to send read receipts. If you could, from your server, influence whether or not this happened, a spammer could easily identify active and inactive email addresses quite easily.
However, another reason why this might be failing, if sending read receipts is enabled, is that you need to include a new line at the end of every line:
我相信用于获取已读通知的标头是
Return-Receipt-To:
。此外,如果客户端没有完全忽略标头,用户通常可以选择忽略“已读回执”,并且不发回电子邮件。I believe one header for getting read notifications was
Return-Receipt-To:
. Also, users usually have the option to ignore the "read receipt", and not send the e-mail back, if the header is not ignored completely by the client.(也许不是问题的答案,但您想要实现的目标的可能答案是)。您的方法在大多数情况下都不起作用,因为确认通常被禁用。使用图像标签来记录电子邮件中的电子邮件阅读内容。如果禁用图像加载,它将不起作用。
(maybe not the answer to the question, but the probable answer to what you are trying to achieve is). Your method won't work most of the times as confirmations are usually disabled. Use a image tag to record the email reads in the email. It won't work if the loading of images is disabled.