none
EWS: EmailMessage.Body.BodyType can be either of HTML or Text. What happens to RTF messages? RRS feed

  • Question

  • Hello,

    EmailMessage.Body.BodyType can be either of HTML or Text. I know that Outlook can create RTF messages. So what happens when a message includes an RTF body?

    Thank you,

    Friday, May 23, 2014 4:48 PM

Answers

  • If the Message was created with in Outlook with the RTF editor what happens when you access the Message using EWS is that the Exchange Store will do a onthefly content conversion of Message body and provide you with HTML or Text. Simulary if a Message is sent with the text only body when you request the HTML body for this message the Exchagne Store will return a converted body for you. If you want the RTF body you can get it from the PR_RTF_COMPRESSED extended property. (if the body was converted from another format whether it was to or from html to RTF there should be meta tags left in the content to indicate that).

    Cheers
    Glen

    • Marked as answer by Allan48 Tuesday, May 27, 2014 2:40 AM
    Monday, May 26, 2014 4:51 AM