note 33859 added to function.mail
| From: | laurie at lauriebaker dot co dot uk | Date: | Wed, 09 Jul 2003 14:08:24 +0000 |
| Subject: | note 33859 added to function.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-51781@lists.php.net to get a copy of this message | ||
I had wondered how to add a request for "Read recipt" and I believe it is a simple case of
adding Disposition-Notification-To:
EXAMPLE:
$headers .= "X-Mailer: PHP\n"; // mailer
$headers .= "X-Priority: 1\n"; // Urgent message!
$headers .= "Return-Path: <birthday@php.net>\n"; // Return path for errors
$headers .= "Disposition-Notification-To: 'Birthday Boy-Girl'
<birthday@php.net>"; // Request "Read Recipt"
I'm not sure if this works with all mailers but I'm using sendmail at the server end and
Outlook for a client.
Any comments?
Laurie.
----
Manual Page -- http://www.php.net/manual/en/function.mail.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33859
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33859&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33859&report=yes