Delivery Reports and Read Receipts in PHP Mail

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



Leave a reply



Submit