Hello
I am trying to use CDONTS object to send mail with code below. I also have
included reference type library in global.asa but the mail at receiving side
just display the strHTML contents without any HTML format. I took this code
from Professional ActiveServer Pages 3.0 chapter-22, page-855.
I will be much thankful for kind help.
Here is code:
strHTML = "<HTML>"
strHTML = strHTML & "<HEAD>"
strHTML = strHTML & "<TITLE>Greeting</TITLE>"
strHTML = strHTML & "</HEAD>"
strHTML = strHTML & "<BODY>"
strHTML = strHTML & "<P>this is not bold<STRONG>this is
bold</STRONG>not this!</P>"
strHTML = strHTML & "</BODY>"
strHTML = strHTML & "<HTML>"
Set objSendMail = CreateObject("CDONTS.NewMail")
With objSendMail
.From=objRS1("epost")
.To =objRS1("epost")
.BodyFormat=CdoBodyFormatHTML
.Body=strHTML
.Send
END With
Set objSendMail = Nothing
---
You are currently subscribed to asp_cdo as: $subst('Recip.EmailAddr')
To unsubscribe send a blank email to leave-asp_cdo-$subst('Recip.MemberIDChar')@p2p.wrox.com