Sending HTML formatted mail using CDONTS

  • Thread starter Thread starter Paul Turley
  • Start date Start date
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
 
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)
 
Back
Top