Re: php mail() question
| From: | Manuel Lemos | Date: | Mon, 15 Dec 2003 14:52:39 +0000 |
| Subject: | Re: php mail() question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32051@lists.php.net to get a copy of this message | ||
Hello,
On 12/14/2003 11:51 PM, Jerry wrote:
Php mail() question. I use php mail() frequently, dragging data from a mysql database. I am not sure if this is possible but thought I'd throw it on this board. in php mail() function you can set a return_address etc. Is it possible to change this and run a query? I mean if the email bounces can it somehow talk back to php mail() and do a query rather than send it to the return_address?If you make the bounce address point to a POP3 mailbox, you have a platform independent solution to handle bounces. Then you just need to use some POP3 component like this to fetch and process the bounced messages once in a while, for instance starting a PHP script from a cron task. I do this all the time to handle bounces from newsletters that I send from my site. http://www.phpclasses.org/pop3class -- Regards, Manuel Lemos Free ready to use OOP components written in PHP http://www.phpclasses.org/