note 24963 modified in function.mail by danbrown

From: Date: Mon, 20 Jun 2011 15:07:24 +0000
Subject: note 24963 modified in function.mail by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-180711@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@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 --was-- 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 (www.Edinburgh-Consulting.com) http://php.net/manual/en/function.mail.php

« previous php.notes (#180711) next »