I need to automate the process of removing bounced emails from an email
list.  I have a "failto" email address set when I send mail, and I'm using
cfpop to check that account for bounced messages.  I'm getting the messages
as expected, but I'm trying to figure out how to parse the failed email
address out of the bounced message body, which (usually) looks like this:
This is an automatically generated Delivery Status Notification. Delivery to
the following recipients failed. [email protected]

Where the message body isn't exactly like that, the bounced email address is
usually the first email address in the message body.

How might I go about extracting the first email address that occurs in a
string?

Thanks!

Pete


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:326019
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to