How to inspect Outlook Option

M

Mark B

VSTO OL2007 C#

How do I inspect the:

Tools>>, Options, Mail Format, Compose In This Message Format, [HTML, Rich
Text, Plain Text] option?

Also I am guessing that even if this is at HTML, the user can do an adhoc
change on a particular email from HTML to plain text? If so, how could we
determine what format they are sending in?
 
K

Ken Slovak - [MVP - Outlook]

You can only get that startup value from the registry. If the user changes
it during the session the changed value will be written back to the registry
but Outlook will work from a memory cached value. And of course a user could
change the format at any time up to when they send the item on a one-off
basis.

In addition, the format can also be changed at sending time by Outlook
depending on settings related to each recipient in the address book (send in
RTF, let Outlook decide, etc.) and in the option settings for Internet
emails, and if using Exchange based on the Exchange settings for sending
various formats over the Internet.

In the item.Send() event (or any other time) you can read the
item.BodyFormat property to see what's been set, but you have to understand
that can be changed based on all the settings I referenced.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top