Re: php mail() question
| From: | JeRRy | Date: | Tue, 16 Dec 2003 09:30:43 +0000 |
| Subject: | Re: php mail() question | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-32071@lists.php.net to get a copy of this message | ||
Hi,
Are you using the test_pop3.php file that you showed
me with the script that handles the bounced emails?
If so, could you please show me a basic example of it
working with it?
My return_path is set as an email alias. (not a real
address at the domain) ....
rewards@getpaid2reademails.com
So that bounces to the 'root' email account. But if
you could show me a basic example I could work with
it.
Coz I'll run a script to talk to the database and flag
the account in question.
I looked at the code but there is nothing in there
that defines from: or anything. Another way I was
thinking if there was a way to look in the $body of
the email for an email address....
I thought perg_match would do something like that but
maybe not?
Is there a PHP matching function/command? So it
coulds search for '@' in the email $body and skip the
$headers.
Jerry
Hello,
That's tricky. What I do is to have a catch-all
mailbox for my site
domain. So, every message sent to a mailbox that does
not really exist
will be dropped in that catch-all mailbox.
When I send messages to each user, I make the return
path address be
set
to something like errors-user=domain@mysite.com .
For instance, messages sent to jusa_98@yahoo.com by
the PHP Classes
site, will have the return path set to
errors-jusa_98=yahoo.com@phpclasses.org .
Since these address really do not exist, they will be
dropped in the
catch-all mailbox for that domain. So, all I need to
do is to run a
script that polls the POP3 mailbox of my catch-all
account and parse
the
To: address of the bounced messages to figure the
subscriber address
that is bouncing. Not all bounce message will have the
To: address set
correctly. The remaining message should be ignored.
http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.