Solved

What are the Outlook Item Properties for Mail Items when Word is the email Editor

Posted on 2003-11-18
4
475 Views
Last Modified: 2010-04-08
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.

Sample:
Private WithEvent objMailItem As Outlook.MailItem
If Item.Class = olMail Then
    objMailItem = Item
End If
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?

Thanks
0
Comment
Question by:pnwyatt
  • 2
4 Comments
 
LVL 24

Accepted Solution

by:
shivsa earned 500 total points
ID: 9776922
11.4 Inspector events
Just as Outlook has an Explorers collection with each individual Explorer object representing a folder window, it also has an Inspectors collection, where each individual Inspector object represents an individual Outlook item window. The Inspectors collection has one event, NewInspector, which fires whenever a new Inspector opens. Unfortunately, the NewInspector event does not fire in all cases where the user opens a new Outlook message. In Outlook 2000, it does not fire when Word is used as the editor (a configuration known as WordMail). In both Outlook 2000 and 2002, you will get no NewInspector event when you invoke a Send or Send To command from other Office programs

please read this book for more help.
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnolbk02/html/odc_ch11olevents.asp
0
 
LVL 24

Expert Comment

by:shivsa
ID: 9776935
also refer to this book.
http://www.slipstick.com/
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Resolve DNS query failed errors for Exchange
Resolve Outlook connectivity issues after moving mailbox to new Exchange 2016 server
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question