Track a specific email is sent

  • Thread starter Thread starter jamiechen168
  • Start date Start date
J

jamiechen168

Hello,

I used .NET to create an Outlook automation solution which is to launch
an email with predefined email template from a .NET app. However I am
stuck with tracking the email is being sent or not.

I saw there is an "ItemSend" event in Application object which seems to
the one. But the problem is that this "ItemSend" event is for every
email being sent from Outlook. So now the problem is to identify the
MailItem object is the one I created. I tried to store the object
reference and later compare them to see if the MailItem object is the
same one I created. But this doesn't work.

Does anyone have the experience in this?

Many thanks
 
What doesn't work? You get an Item object passed to you in
Application.ItemSend, you can compare that object to the one you have
referenced.
 
Back
Top