HTML message via CDONTS

J

Jon

Hi,

I am trying to use CDONT to send a HTML message, but on the receiving
machine it just shows the code in the message. Any ideas

This is inside asp code..

Dim EmailString
Dim objMail

EmailString = EmailString & "<HTML>" & vbCrLf & _
"<head>" & vbCrLf & _
"<title>Test email</title>" & vbCrLf & _
"</head>" & vbCrLf & _
"<body>" & vbCrLf & _
"<p><strong><big><big>Hi there</big></big><strong></p>" & vbCrLf & _
"</body>" & vbCrLf & _
"</HTML>" & vbCrLf

Set objMail = Server.CreateObject("CDONTS.Newmail")

objMail.From = TheFromAddress
objMail.To = TheToAddress
objMail.Subject = "Test message"
objMail.BodyFormat = 0
objMail.Body = EmailString
objMail.Send

Set objMail = Nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,525
Members
44,997
Latest member
mileyka

Latest Threads

Top