Solved

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

Posted on 2003-11-18
4
468 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
Comment Utility
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
Comment Utility
also refer to this book.
http://www.slipstick.com/
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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…

762 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now