Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Remove HTML format but keep email format

Status
Not open for further replies.

jasonhuibers

Programmer
Sep 12, 2005
290
CA
String contains a value in HTML format. The value is an email.
The value contains tags such as <P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><o:p><FONT face ...
I was able to remove the HTML format, but I end up losing the format in general. The email will show on
one line, etc...

Any suggestions on how I can remove the HTML but keep the email format?
 
Any suggestions on how I can remove the HTML but keep the email format?

You can't, the choices for sending or receiving email are plain text or HTML.

to 'format' the message as multiple lines for the text body part, you insert a line feed and carriage return pair using the predefined constant of vbcrlf.

such as:

Code:
message = "some text on one line" & vbcrlf & "some text on the second line"

Chris.

Indifference will be the downfall of mankind, but who cares?
Time flies like an arrow, however, fruit flies like a banana.
Webmaster Forum
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top