Group:  Microsoft Outlook ยป microsoft.public.outlook.interop
Thread: Track a specific email is sent

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Track a specific email is sent
jamiechen168[ at ]gmail.com 07.09.2006 06:23:58
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

Re: Track a specific email is sent
"Ken Slovak - [MVP - Outlook]" <kenslovak[ at ]mvps.org> 07.09.2006 13:51:36
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
>

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net