Re: Track emails
- From: Dan Mitchell <djmitchella@xxxxxxxxx>
- Date: Tue, 25 Jul 2006 09:49:31 -0700
=?Utf-8?B?dXNhbWFhbGFt?= <usamaalam@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
news:AFE4C82D-1ABE-4F5D-BD02-563F8628EEE0@xxxxxxxxxxxxx:
Any code sample or tutorial on how to deal with NDR?
Not really -- you just get an email in from whoever it was that bounced
it, and it'll contain some sort of error message. The message will
depend on what it was that generated the bounce.
If you mail to a nonexistent site, Exchange generates something like
this:
- - - -
Your message did not reach some or all of the intended recipients.
Subject: Testing
Sent: 25/07/2006 10:45 AM
The following recipient(s) cannot be reached:
nosuchuser@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx on 25/07/2006 10:45
AM
The e-mail system was unable to deliver the message, but did
not report a specific reason. Check the address and try again. If it
still fails, contact your system administrator.
- - - -
If it's a nonexistent user at your local site (and you're running
Exchange), it'll say "the e-mail account does not exist", because your
local site knows who does and doesn't exist.
If it's a nonexistent user at a remote site, a number of things might
happen.
1. It'll silently fail, nothing happens, the mail gets deleted.
2. It'll get delivered to a "all nonexistent user mail goes here"
mailbox.
3. It'll bounce -- then you get some sort of mail back from the remote
server. What that mail contains will depend on the server in question,
you'll have to test it against every mail server you want to handle to
see what exactly you get sent back.
There's no standard format for NDRs that go to users. If you write your
own socket-level SMTP sending code, then you get more info about exactly
what happened, but that still doesn't solve problems 1 or 2 if the
remote mail server decides to do that.
-- dan
.
- References:
- Re: Track emails
- From: Dan Mitchell
- Re: Track emails
- Prev by Date: Re: Some way to trigger flushing of Outbox in OLXP/2003
- Next by Date: Re: Some way to trigger flushing of Outbox in OLXP/2003
- Previous by thread: Re: Track emails
- Next by thread: Re: fnevNewMail and fnevObjectCreated
- Index(es):
Relevant Pages
|