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

ASP to outlook

Status
Not open for further replies.

dhaveedh

Programmer
Aug 13, 2003
112
GB
Hi folks,

I am sending the body of a form through to an email using an ASP page.

It works alright but my user has suddenly asked me to format sections of the email output to be in bold while the others are not in bold format.

Anyone got ideas?

KISS - Keep It Simple Sugar!
 
Is the email currently being sent as plain text? Are you using CDONTS?

Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Is this what you're after?
Code:
strEmailBody = "<HTML>" & vbcrlf & "<HEAD>" & vbcrlf & _
               "<TITLE>" & strEmailSubject & "</TITLE>" & vbcrlf & _
               "</HEAD>" & vbcrlf & _
               "<BODY>" & vbcrlf & _
               "your HTML formatted content here" & vbcrlf & _
               "</BODY>" & vbcrlf & "</HTML>"

Set objEmail = CreateObject("CDONTS.NewMail")

With objEmail
  .MailFormat = CdoMailFormatMIME
  .BodyFormat = CdoBodyFormatHTML
  .from = strFromAddress
  .to = strToAddress
  .subject = strEmailSubject
  .body = strEmailBody
  .Send
End With

Set objEmail = Nothing

Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top