What are the Outlook Item Properties for Mail Items when Word is the email Editor
Posted on 2003-11-18
I have a COM Addin that is triggered by the MailItem_Send and OutlookItem_Send events. I am testing it using Outlook 2000. It works great except when Word is selected as the email editor. When Word is used, the MailItem_Send event are not triggered. Even though the Item.Class = 43 (olMail) the Item cannot be assigned to and Outlook.MailItem object. An error occurs if this assignment is made.
Private WithEvent objMailItem As Outlook.MailItem
If Item.Class = olMail Then
objMailItem = Item
Creates a error is the Item was created using Word as the email editor.
Does anyone know how to detect this and what type of object to use for the item in this case? What object property could be used to detect this since Class is the same for Word and Plain Text emails?