we have a application (http://www.mailmarketpro.com ) that picks up all the bounces from mailing campaigns. The only reliable way I discovered of tracking an e-mail address coming back was to use the from: field of every e-mail going out to contain a unique string. That way when an e-mail bounces, it'll bounce back to that address which we've setup with a catchall account. we then use the tcp/ip com object to interrogate the account, get all emails, parse the from address to retrieve the identifier and then look up the to: address from the database.
Had to do it this way as not *all* mailservers reply with useful information (although most do) when an email bounces, but you can reply on them sending back to the same address it was sent from. we handle normal human replies with the reply-to: field in the headers. > -----Original Message----- > From: Oliver Tomkins > [mailto:[EMAIL PROTECTED] > Sent: 20 June 2003 09:03 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] Get an email address out of a block of text > > > You might have an issue there. I have seen bounces coming > back with the actual postmaster (or similar) address within > the body of the email as well. So how do you distinguish? > > Tried to do something similar in a previous position, but as > there is no real standard for what constitutes a decent > bounce message we ended up doing in manually (when we could > be bothered). Having said that we were not mailing on that scale. > > > > -----Original Message----- > From: Allan Cliff [mailto:[EMAIL PROTECTED] > Sent: 20 June 2003 08:59 > To: CF - List > Subject: [ cf-dev ] Get an email address out of a block of text > > > What I am trying to do is the following. > > Every so often we send out tens of thousands of emails and a > few thousand of these come back either as invalid mail > address, full mailbox or incorrect syntax of email. > > So what I want to do is schedule cfpop to take these off the > server and then look in the body of these emails and get the > culprit out. Then mark them in the database so they have to > enter a correct mail address. > > So how would I go about getting the email address out of the > following example. > Also bear in mind that every mail host sends a different kind > of mail so the text block will always be different. > > ---------------------------------------------------------------------- > Reporting-MTA: Arrival-Date: Fri, 20 Jun 2003 02:01:01 +0000 (GMT) > > Final-Recipient: rfc822; [EMAIL PROTECTED] > Action: failed > Status: 5.0.0 > Diagnostic-Code: X-Postfix; host > abcdef.whitehouse.com[65.39.178.33] said: 554 > <[EMAIL PROTECTED]>: Recipient address rejected: Account > expired------------------------------------------------------- > --------------- > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
