Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Newsgroup Archive
Outlook Newsgroups
Outlook General
Outlook 2010 - Reading HTML and Text
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
Reply to thread
Message
[QUOTE="Char Jackson, post: 7405961"] Here's one: <[URL]http://www.outlookcode.com/article.aspx?id=62[/URL]> I simply copied/pasted their example, which changes the target to plain text. Next, I made a small change (changed olFormatPlain to olFormatHTML) and it changed the target back to HTML. I only did a bit of testing, but it seemed to work as expected. I didn't notice any side effects. Method One (from the link above): Sub ConvertToPlain(MyMail As MailItem) Dim strID As String Dim objMail As Outlook.MailItem strID = MyMail.EntryID Set objMail = Application.Session.GetItemFromID(strID) objMail.BodyFormat = olFormatPlain objMail.Save Set objMail = Nothing End Sub As you can see, the above is not a script, but rather a VBA module. (The Outlook rules wizard mistakenly refers to scripts.) To make it available to the rules wizard, click on the Developer heading in OL2010, then click on Visual Basic. In the upper left window, expand Project1, then expand Microsoft Outlook Objects. Double click on ThisOutlookSession to open the composition window. Paste the code into the window and hit the disk icon to save it. Close the VBA editor, go back to the OL rules wizard. Your 'script' (module) should now be available and ready to use. Here's the same script, but this version converts the target to HTML: Sub ConvertToHTML(MyMail As MailItem) Dim strID As String Dim objMail As Outlook.MailItem strID = MyMail.EntryID Set objMail = Application.Session.GetItemFromID(strID) objMail.BodyFormat = olFormatHTML objMail.Save Set objMail = Nothing End Sub I'll look for feedback in September, I guess. ;-) [/QUOTE]
Verification
Post reply
Forums
Archive
Newsgroup Archive
Outlook Newsgroups
Outlook General
Outlook 2010 - Reading HTML and Text
Top