Sending HTML formatted mail using CDONTS

P

Paul Turley

Does anyone have some sample code for sending an HTML formatted message
using CDONTS?

Thanks


RE: Sending HTML formatted mail using CDONTS
 
K

Krissy

CDONTS is more ASP rather than .NET

If you want ASP.NET try

Dim oEml As New Web.Mail.MailMessage()
oEml.To = "(e-mail address removed)"
oEml.From = (e-mail address removed)
oEml.Subject = "VERY IMPORTANT"
oEml.BodyFormat = MailFormat.Html
oEml.Body = "<html><font size=7 color=red>HTML is Cool!!</font></html>"
Web.Mail.SmtpMail.SmtpServer = "localhost"
Web.Mail.SmtpMail.Send(oEml)
 

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,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top