note 24963 deleted from function.mail by tularis
| From: | tularis@php.net | Date: | Mon, 13 Jun 2016 10:29:32 +0000 |
| Subject: | note 24963 deleted from function.mail by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-205699@lists.php.net to get a copy of this message | ||
Note Submitter: stevenlim at Edinburgh-Consulting dot com
----
How to detect a bounce email
1. make sure the email you send out have the header
"Return-Path: detect-bounce@example.com\r\n",
&
"Return-Receipt-To: bounce@example.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