Solved

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

Posted on 2003-11-18
4
479 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
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: …
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…

730 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