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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting a string for emailing

Status
Not open for further replies.

CyrusAyers

Programmer
Feb 4, 2004
25
0
0
US
Id like to take an ASP string, and send it as the body of an email. This works fine, but id like to keep the <br> and <b> characters, etc. so it formats the same as in the "Preview email" page.
Heres what i have (tried reading your posts) and it dosent work yet:

Set objMail = CreateObject("CDONTS.Newmail")
objMail.From = SENDER
objMail.To = TRANS
objMail.Subject = "GED Transcript Request (Form Generated)"
objMail.Body = Session("TransReq")
objMail.MailFormat = 0  'send HTML format
objMail.BodyFormat = 0  'same
objMail.Send
Set objMail = Nothing

Thanks for any help!
PS could i use TGML? :)
 
(ok well, skip the <b> tags, ill remove those first...)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top