PHP 邮件中的交付报告和阅读回执 [英] Delivery reports and read receipts in PHP mail

查看:39
本文介绍了PHP 邮件中的交付报告和阅读回执的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你们中有人知道要添加哪些邮件标题才能获得已读回执和送达报告吗?现在,当您使用普通的 PHP 邮件功能时.没有像 phpMail 这样花哨的附加脚本/类.

Does anyone of you know off by hand what mail headers to add in order to get a read receipt and delivery report? This now being when you use the normal PHP mail function. No fancy add-on script / class like phpMail.

推荐答案

对于阅读确认:

您必须添加X-Confirm-Reading-To 标头.

X-Confirm-Reading-To: <address>

对于交货确认:

您必须添加 Disposition-Notification-To 标头.

有关使用详情,请参阅 RFC 3798.

For usage details see RFC 3798.

此类内容的一般提示:

使用您选择的邮件客户端生成带有所需参数的电子邮件,将其发送给自己并查看邮件来源.

Use the mail client of your choice to generate an e-mail with the desired parameters, send it to yourself and look at the mail source.

您可以在那里找到由您正在寻找的功能添加的必要标题.然后阅读 RFC 或谷歌以了解有关标题的具体细节.

There you can find the necessary headers added by the feature you are looking for. Then read the RFC or google for specific details on the header in question.

这篇关于PHP 邮件中的交付报告和阅读回执的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆