Here's how I've done handled bounced mail in the past...

1) Create a bounces subdomain for your domain (ie: bounces.blah.com).

2) Configure your mail server to route all messages sent to
bounces.caycon.com into one catch all mailbox.

3) When your system generates emails to members of your site/database, set
the return-path header to use some combination of a unique user id and the
bounces subdomain.  For example, I may be user # 46738 in the database, so
my return-path might be [EMAIL PROTECTED]

4) Have a scheduled script, cron, whatever check your catch all account and
parse out all the email addresses matching [EMAIL PROTECTED] and then
yank out the part before the @ to determine which users bounced.

5) Run database updates or other events as needed.

HTH.

-Cameron

-----------------
Cameron Childress
Sumo Consulting Inc
http://www.sumoc.com
---
cell:  678.637.5072
aim:   cameroncf
email: [EMAIL PROTECTED]



On Tue, 07 Dec 2004 14:27:49 -0400, Colin Wilson
<[EMAIL PROTECTED]> wrote:
> I am working on the bounced email part for my newsletter system.
> 
> Two options for clearing emails would work fine,
> 
> first - I have this common string of text from the cfpop message body
> 
> Failed to deliver to '[EMAIL PROTECTED]' SMTP module(domain hotmail.com) 
> reports: host mx2.hotmail.com says: 550 Requested action not taken: mailbox 
> unavailable
> 
> All emails from my mailer deamon have this common string -
> 
> there are some others that come in differently.. but that's ok> 
> How do I get the system to read the email between the single quotes
> 
> second - is there a string of code that would give me all email addresses in 
> the message body so that I could run a query to place them into a holding 
> table till they bounce a second / third time...
> 
> Any help would be much appreciated.
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Special thanks to the CF Community Suite Silver Sponsor - CFDynamics
http://www.cfdynamics.com

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:186596
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to