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!

email text format Htmlbody

Status
Not open for further replies.

carranz

Technical User
Nov 17, 2006
40
US
I have a small problem I have an email script that sends out an email.
everytime I submit the script some of the fonts change or I would get different characters in the email. it never consistent. Not sure why its doing this.

I'm using HTMLBody to create the message. Any help would be appreciated.


objMessage.HTMLBody = "Approval System" & "<br>" & "Access Request Form" & "<hr COLOR=#FF0000>" & "I. Name and Contact Information:" & "<br>" & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Full Name:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & fullname & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Name.#:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" &"&nbsp;" & name1 & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Coll:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & Collx & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Department:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & depart & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Email:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & email & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Phone:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & Phone & "<br>" & "<br>" & "<b><FONT FACE=Verdana SIZE=2>ECA Roles:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "<FONT FACE=Verdana SIZE=2>(IN) Initiator:</FONT>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & chk1 & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" &"&nbsp;" & "<FONT FACE=Verdana SIZE=2>(CM)Committee Member:</FONT>" & "&nbsp;" & "&nbsp;" & chk2 & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "<FONT FACE=Verdana SIZE=2>(CHRDIR) Cha:</FONT>" & "&nbsp;" & "&nbsp;" & chk3 & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "<FONT FACE=Verdana SIZE=2>(ADM) Admin:</FONT>" & "&nbsp;" & "&nbsp;" & chk4 & "<br>" & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Comments:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & message & "<hr COLOR=#FF0000>" & "<br>" & "II. Name and Contact Information:" & "<br>" & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Full Name:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & fullnametxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Name.#:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" &"&nbsp;" & name1txt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Coll:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & Colltxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Depart:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & deptxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Em:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & emtxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Ph:</FONT></b>" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & "&nbsp;" & Phtxt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top