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.
-- Ken Slovak [MVP - Outlook] http://www.slovaktech.com Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003 Reminder Manager, Extended Reminders, Attachment Options http://www.slovaktech.com/products.htm
<jamiechen168[ at ]gmail.com> wrote in message news:1157610238.680079.9040[ at ]m73g2000cwd.googlegroups.com...
[Quoted Text] > 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 >
|