Delivery reports and read receipts in PHP mail

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.

72.3k 62 62 gold badges 254 254 silver badges 336 336 bronze badges asked Jul 3, 2009 at 7:47 813 1 1 gold badge 10 10 silver badges 14 14 bronze badges

4 Answers 4

For the reading confirmations:

You have to add the X-Confirm-Reading-To header.

X-Confirm-Reading-To:

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.