F
Fei Yuan
I'm not talking about meeting request or a task request. I know that I sent
a mail item, but the event wasn't triggered properly. Please read my
question carefully. Thanks.
Regards,
- Fei -
You should never expect to see only MailItem objects in the Inbox or Sent
Items. A user could be sending a meeting request or a task request as well.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
a mail item, but the event wasn't triggered properly. Please read my
question carefully. Thanks.
Regards,
- Fei -
You should never expect to see only MailItem objects in the Inbox or Sent
Items. A user could be sending a meeting request or a task request as well.
--
Sue Mosher, Outlook MVP
Outlook and Exchange solutions at http://www.slipstick.com
Author of
Microsoft Outlook Programming: Jumpstart
for Administrators, Power Users, and Developers
http://www.slipstick.com/books/jumpstart.htm
----------Fei Yuan said:Hi,
I know that Outlook 2003 Beta 2 is still in Beta version and not supported
by Microsoft. But I hope I can describe my issue here so that it gets fixed
in the upcoming final version.
Currently I'm developing a COM Add-in for Outlook 2003 Beta 2 with Visual
Studio .NET 2003. Outlook 2003 has been patched with the latest Technical
Refresh for Office 2003 Beta 2. I'm using Outlook 2003's native .NET
programming support as COM Interop.
I found that the ItemAdd_Event handler on Outlook.Items object is not
triggered properly. I'm monitoring new items in the "Sent Items" folders,
and when the first time a new email is added to this folder, the object
passed to the event handler is not a MailItemClass object, but an object of
type name "__ComObject". This results failure to cast it properly back to
the MailItemClass object. Despite the first time failure, the subsequent
triggers work fine with passing a MailItemClass object correctly.
Please let me know if this problem has been recognized already.
Regards,
- Fei -