Track a specific email is sent

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
 
K

Ken Slovak - [MVP - Outlook]

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top