Anyone who's ever used Microsoft Outlook will be familiar with the Delivery Receipt and Read Receipt options, but how can we implement them with PHP? Sadly, the delivery receipt is an Exchange feature, but a read receipt we can do.
<?php
$headers = "From: Your Name<test@test.com>\n";
$headers.= "Disposition-Notification-To:<test@test.com>\n";
$body ="Body Text";
mail("your@email.com", "Read Receipt Test", $body, $headers);
?>
>> Posted in Websites at 16:11, and viewed 8,064 times
Next article: Mailto: Syntax (16 March 2010)
Next Websites article: PHP Mail Delivery and Read Receipts (09 April 2010)
Add your comments