Delivery reports and read receipts in PHP mail
For the reading confirmations:
You have to add the X-Confirm-Reading-To
header.
X-Confirm-Reading-To: <address>
For delivery confirmations:
You have to add the Disposition-Notification-To
header.
For usage details see RFC 3798.
General tip for stuff like this:
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.
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.
How to get delivery report from PHP mail function?
For delivery confirmations:
You have to add the Disposition-Notification-To
header.
For usage details see RFC 3798.
General tip for stuff like this:
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.
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.
Ref: Delivery reports and read receipts in PHP mail
PHP email Headers - delivery option
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:
$email_header .= "Disposition-Notification-To: $from\r\n";
$email_header .= "X-Confirm-Reading-To: $from\r\n";
Why i can't receive delivery or read receipt?
Whether read receipts are sent is entirely up to the receiving email client. Most do not support them any more because of widespread abuse by spammers. So you can request them, exactly as you are, but it's very unlikely you will actually get any.
Related Topics
PHP Optional Parameters - Specify Parameter Value by Name
Submit Multiple Forms with One Button
Get the Values of 2 HTML Input Tags Having the Same Name Using PHP
Accessing Arrays Whitout Quoting the Key
How to Download a File on Clicking the Name of File Using PHP
Sort a Set of Multidimensional Arrays by Array Elements
Trying to Pass Todataurl with Over 524288 Bytes Using Input Type Text
Mail(): Smtp Server Response: 550 the Address Is Not Valid Error on Hmailserver
Php/Pdo/Mysql: Inserting into Mediumblob Stores Bad Data
PHP Session Seemingly Not Working
Override External Product Url to "Add to Cart" Product Button
What Is the Name for the "<<<" Operator
How to Get Attribute of Node with Namespace Using Simplexml
Get All Records from MySQL Database That Are Within Google Maps .Getbounds