plain text with BodyFormat HTML not showing correctly

Discussion in 'Microsoft Outlook Program Addins' started by Nagaraj, Mar 3, 2009.

  1. Nagaraj

    Nagaraj Guest


    I have a plain text

    <a href=http://localhost:8080/Aatmani/adclick?adprintid=1224>Learn how the
    Mandarin Oriental Hotel give 5-Star service with PI</a>

    I want to show it in the HTML format. I used the following code

    mailItem.BodyFormat =


    But still I am not getting the result in the HTML format but only in the
    plain format. Can anyone help me?

    Nagaraj, Mar 3, 2009
    1. Advertisements

  2. That's not valid HTML. For HTML you'd need to add quotes to the URL. Take a
    look at some valid HTML to see how it looks.

    An example would be the URL "", which would look
    like this in HTML:

    <a href=""></a>

    How are you adding that text?

    If you want HTML then after making sure the BodyFormat is HTML you need to
    add correct HTML to the HTMLBody property.
    Ken Slovak - [MVP - Outlook], Mar 3, 2009
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.