Hi, Thanks for that. That's hitting the nail right on the head.
But I need a bit of PHP code to talk to mysql and only read the "from" part of the email and use a query to check the database if the entry is there. If it is than flag it, if not skip it and delete the email. So would I need to edit the code to make the from section a input form or can I somehow get a query to get the from data from plain text? All I want is the from address, the rest I don't really need. So.... UPDATE users SET flag='y' WHERE email='$from_address'; Might even output something to make sure it was sucessful or not. What I need to know is how I get the from address? Jerry --- Manuel Lemos <[EMAIL PROTECTED]> wrote: > 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/ > http://personals.yahoo.com.au - Yahoo! Personals New people, new possibilities. FREE for a limited time. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php