A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Add-ins for Outlook
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

plain text with BodyFormat HTML not showing correctly



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 3rd 09, 06:13 AM posted to microsoft.public.outlook.program_addins
Nagaraj
external usenet poster
 
Posts: 22
Default plain text with BodyFormat HTML not showing correctly

Hi,

I have a plain text

plain
a href=http://localhost:8080/Aatmani/adclick?adprintid=1224Learn 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 =
Microsoft.Office.Interop.Outlook.OlBodyFormat.olFo rmatHTML;

mailItem.Save();

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

Thanks

--
Nagaraj Tadipatri
Ads
  #2  
Old March 3rd 09, 03:26 PM posted to microsoft.public.outlook.program_addins
Ken Slovak - [MVP - Outlook]
external usenet poster
 
Posts: 5,848
Default plain text with BodyFormat HTML not showing correctly

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 "http://www.slovaktech.com", which would look
like this in HTML:

a href="http://www.slovaktech.com"http://www.slovaktech.com/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]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007.
Reminder Manager, Extended Reminders, Attachment Options.
http://www.slovaktech.com/products.htm


"Nagaraj" wrote in message
...
Hi,

I have a plain text

plain
a href=http://localhost:8080/Aatmani/adclick?adprintid=1224Learn 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 =
Microsoft.Office.Interop.Outlook.OlBodyFormat.olFo rmatHTML;

mailItem.Save();

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

Thanks

--
Nagaraj Tadipatri


 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BodyFormat as Html or Rich Text Steve*n Add-ins for Outlook 2 March 2nd 09 06:36 PM
Outlook 2003: How to read emails in HTML, Rich Text or Plain Text? Spin[_2_] Outlook - General Queries 2 December 24th 08 05:00 AM
change reply to html vs plain text. option chosen is html konagirl Outlook - Installation 2 May 20th 08 01:58 AM
Difference within HTML/Rich Text/Plain Text vt003 Outlook - General Queries 1 October 3rd 07 06:30 PM
problem with rich text (HTML)/plain text Jam Sr Outlook Express 2 July 8th 06 12:50 AM


All times are GMT +1. The time now is 06:51 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.