note 24963 added to ref.mail
| From: | stevenlim at Edinburgh-Consulting dot com | Date: | Fri, 06 Sep 2002 05:53:54 +0000 |
| Subject: | note 24963 added to ref.mail | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-36222@lists.php.net to get a copy of this message | ||
How to detect a bounce email
1. make sure the email you send out have the header
"Return-Path: detect-bounce@yourdomain.com\r\n",
&
"Return-Receipt-To: bounce@yourdomain.com\r\n"
2. setup this detect-bounce mail account at your mail server
3. redirect the incoming mail from this email account to your php script (check your mail server doc
on how do this)
4. your php script will then be able to process the incoming email in whatever way you like,
including to detect bounce mail message (use regexp search).
Note that the mail will be not be store after the mail server has redirect to your script. If you
want to store it, you need additional code in your script
Hope the above help
Steven Lim
IT Consultant (www.Edinburgh-Consulting.com)
--
http://www.php.net/manual/en/ref.mail.php
http://master.php.net/manage/user-notes.php?action=edit+24963
http://master.php.net/manage/user-notes.php?action=delete+24963
http://master.php.net/manage/user-notes.php?action=reject+24963