Regarding the Delivery Status Notification
- Hello,
We want to send the email confirmation to the sender. Now the confirmation mail should be like, for example: Sender has send 10 emails through the system and out of that 6 mails were successfully delivered but 4 of them failed. Now we want to send the Status Email of those 10 emails that 6 mails sent to so & so persons have been delivered successfully and 4 mails sent to so & so persons have been failed.
This Status Email should be single consolidated email for both Successful and Failed message. So pl help us by suggesting a way where security is not breached and our need is also fulfilled. I m doing this using Exchange Server 2007.
I have tried the way by which i am sending all the emails from single mailbox and then reading the inbox for delivery receipts using EWS, but that too in the Successful delivery receipt i m not able to find any relevant information into the headers to identify that for which email that delivery receipt is for.
On the other side, when the email fails the headers of the email is sent along with the failure receipt where we can detect that for which email that failure receipt is generated.
Please help me by suggesting any other way of achieving this.
All Replies
- Hi,
first, you cannot rely on successful delivery notifications. This is for multiple reasons:
1) An email might traval over quite a number of servers. If an email is relayed to a server which does not support delivery notifications (as advertised by the DSN keyword in an EHLO reply), the sending server generates a relay notification. This does, however, not mean that the mail has been delivered to its recipients.
2) If you request a read/delete notification, the user might simply have turned that feature of.
So you can only rely on DSNs for failed attempts. There is a standard for delivery notifications (http://www.faqs.org/rfcs/rfc3464.html), but it is not used by every SMTP server implementation.
An additional problem is that Exchange processes NDRs which are generated according to the above mentioned standard and creates a "user-friendly" error message for it. This mail might have the reference to the original mail in it, but I don't know that out of my head. You might want to take a look at such a message using OutlookSpy http://www.dimastr.com/outspy/ to see if you can find relevant infos. Try searching for a message id, that should allow for a safe correlation.
Kind regards,
Henning Krause


