All Forums >> [Scripting] >> ASP >> Format Text to display Bold Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Posts: 8
Score: 0
Joined: 4/1/2005
From: USA
Status: offline
You need to send a HTML-format message, instead of a plain-text message, in order to get BOLD.
You need to read up on the CDONTS.NewMail object. Use BodyFormat=1 to send plain text, and BodyFormat=0 to send HTML.
Here is sample code that creates an HTML-format message:
Dim myMail Set myMail = CreateObject("CDONTS.NewMail")
HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & NL HTML = HTML & "<html>" HTML = HTML & "<head>" HTML = HTML & "<meta http-equiv=""Content-Type""" HTML = HTML & "HTML = HTML & ""content=""text/html; charset=iso-8859-1"">""" HTML = HTML & "<title>Sample NewMail</title>" HTML = HTML & "</head>" HTML = HTML & "<body>" HTML = HTML & "This is a sample message being sent using HTML. <BR></body>" HTML = HTML & "</html>"