Identifying Returns Emails

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi everyone,

I develop an application that sends statements account
for customers of a bank.

Everything works fine, I know when every email it is sent
or not, but after exchange sent each message out to the
Internet I loose control of it. I fill a MS SQL database
with all the information of the delivery, and mark each
record with an status of "Sent".

I develop an another service that iterates in Outlook
Inbox of the account I use to send every email. This
service correctly identify when the Exchange Server
couldn't sent a message to outside. With the information
in this message I clearly identify the message and I
update the record status to "No Sent".

My problem begins at this point, because I need to know
when I receive a return "bounce" email for an outside
SMTP server.

There is any way, I could mark my messages to know when a
response message is sent back to my Inbox or Exchange
Server?
 
You can do this in three ways:

1) Write a VBA macro to monitor the NewMailEx event and iterate through the
new messages to see if any of them are NDRs for the e-mails you have delivered
2) As above, but implement as a COM Add-In (easier to distribute to multiple
PC's)
3) Write an Exchange Event Sink that monitors the IExStoreAsyncEvents.OnSave
event for the Mailbox where it is installed to look for these NDRs. Does not
involve a client-side installation (requires Exchange 2000+).
 
Back
Top