Search code examples
phpemailemail-headers

PHP email Headers - delivery option


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.


Solution

  • 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";