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>" & " " & " " & " " & " " & " " & " " & fullname & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Name.#:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " &" " & name1 & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Coll:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & Collx & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Department:</FONT></b>" & " " & " " & " " & depart & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Email:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & email & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Phone:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & Phone & "<br>" & "<br>" & "<b><FONT FACE=Verdana SIZE=2>ECA Roles:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & "<FONT FACE=Verdana SIZE=2>(IN) Initiator:</FONT>" & " " & " " & " " & chk1 & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " &" " & "<FONT FACE=Verdana SIZE=2>(CM)Committee Member:</FONT>" & " " & " " & chk2 & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & "<FONT FACE=Verdana SIZE=2>(CHRDIR) Cha:</FONT>" & " " & " " & chk3 & " " & " " & " " & " " & " " & " " & " " & " " & " " & "<FONT FACE=Verdana SIZE=2>(ADM) Admin:</FONT>" & " " & " " & chk4 & "<br>" & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Comments:</FONT></b>" & " " & " " & " " & " " & " " & message & "<hr COLOR=#FF0000>" & "<br>" & "II. Name and Contact Information:" & "<br>" & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Full Name:</FONT></b>" & " " & " " & " " & " " & " " & " " & fullnametxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Name.#:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " &" " & name1txt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Coll:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & Colltxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Depart:</FONT></b>" & " " & " " & " " & deptxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Em:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & emtxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Ph:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & Phtxt
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>" & " " & " " & " " & " " & " " & " " & fullname & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Name.#:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " &" " & name1 & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Coll:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & Collx & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Department:</FONT></b>" & " " & " " & " " & depart & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Email:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & email & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Phone:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & Phone & "<br>" & "<br>" & "<b><FONT FACE=Verdana SIZE=2>ECA Roles:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & "<FONT FACE=Verdana SIZE=2>(IN) Initiator:</FONT>" & " " & " " & " " & chk1 & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " &" " & "<FONT FACE=Verdana SIZE=2>(CM)Committee Member:</FONT>" & " " & " " & chk2 & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & "<FONT FACE=Verdana SIZE=2>(CHRDIR) Cha:</FONT>" & " " & " " & chk3 & " " & " " & " " & " " & " " & " " & " " & " " & " " & "<FONT FACE=Verdana SIZE=2>(ADM) Admin:</FONT>" & " " & " " & chk4 & "<br>" & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Comments:</FONT></b>" & " " & " " & " " & " " & " " & message & "<hr COLOR=#FF0000>" & "<br>" & "II. Name and Contact Information:" & "<br>" & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Full Name:</FONT></b>" & " " & " " & " " & " " & " " & " " & fullnametxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Name.#:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " &" " & name1txt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Coll:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & Colltxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Depart:</FONT></b>" & " " & " " & " " & deptxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Em:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & emtxt & "<br>" & "<b><FONT FACE=Verdana SIZE=2>Ph:</FONT></b>" & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & " " & Phtxt