Have you ever used the Delivery Receipt / Read Receipt options in Microsoft Outlook? If you haven't ... try it - if your recipient uses Microsoft Exchange, you will get a 'Delivery Status Notification' email immediately, and when the mail is opened, you should receive a 'Read:'
Wouldn't it be great if you could add this functionality to emails sent from your website? Well, there's good news, bad news and worse news.
The good news is that the SMTP standard allows a Message Disposition Notification which specifies a return email address that the mail client can send a confirmation receipt to. This is your Read Receipt and can be implemented in PHP using the following code:
$headers = "From: Your Name<email@example.com>\n";
$headers.= "Disposition-Notification-To: <firstname.lastname@example.org>\n";
@mail("email@example.com", "Receipt Test", "Send me a read receipt", $headers);
>> Posted in Websites at 14:04, and viewed 11,174 times
Next article: Browser Comparison (01 September 2010)
Next Websites article: Sending PHP Email From IIS (02 February 2011)
16th September 2013 at 15:41
like web siite
Add your comments