J
jamiechen168
Hello,
I am using .NET C# with VS 2005 for Outlook automation.
Can someone explain me how to use MailItem.Send event correctly?
What I discovered is MailItem inherits ItemEvents_10_Event interface
and _MailItem interface and both have "Send" defined. And _MailItem's
Send obscures ItemEvents_10_Event's Send.
MailItem
|
+ ItemEvents_10_Event (where "Send" is defined as an event) <= This
is what I need
+ _MailItem (where "Send" is defined as a method)
Even if I try to cast MailItem to ItemEvents_10_Event, I got a null for
it. Below is the example code,
// Below outLookEvent will turn to be null.
Outlook.ItemEvents_10_Event outLookEvent =
(Outlook.ItemEvents_10_Event) mailItem;
outLookEvent.Send += new .....
Does anyone ever use MailItem.Send event successfully?
Thanks
I am using .NET C# with VS 2005 for Outlook automation.
Can someone explain me how to use MailItem.Send event correctly?
What I discovered is MailItem inherits ItemEvents_10_Event interface
and _MailItem interface and both have "Send" defined. And _MailItem's
Send obscures ItemEvents_10_Event's Send.
MailItem
|
+ ItemEvents_10_Event (where "Send" is defined as an event) <= This
is what I need
+ _MailItem (where "Send" is defined as a method)
Even if I try to cast MailItem to ItemEvents_10_Event, I got a null for
it. Below is the example code,
// Below outLookEvent will turn to be null.
Outlook.ItemEvents_10_Event outLookEvent =
(Outlook.ItemEvents_10_Event) mailItem;
outLookEvent.Send += new .....
Does anyone ever use MailItem.Send event successfully?
Thanks