Re: php mail() question
| From: | JeRRy | Date: | Tue, 16 Dec 2003 00:23:35 +0000 |
| Subject: | Re: php mail() question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32062@lists.php.net to get a copy of this message | ||
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 <mlemos@acm.org> 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.