By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,827 Members | 2,195 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,827 IT Pros & Developers. It's quick & easy.

Sending HTML formatted mail using CDONTS

P: n/a
Does anyone have some sample code for sending an HTML formatted message
using CDONTS?

Thanks
RE: Sending HTML formatted mail using CDONTS

--
Paul Turley, MCSD, MCAD, MCT, MSF Practitioner, A+ Technician
pa**@createsolutions.net

Nov 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
CDONTS is more ASP rather than .NET

If you want ASP.NET try

Dim oEml As New Web.Mail.MailMessage()
oEml.To = "jo*****@somewhere.com"
oEml.From = an****@domain.com
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)
"Paul Turley" <pa**@createsolutions.net> wrote in message
news:OX**************@TK2MSFTNGP12.phx.gbl...
Does anyone have some sample code for sending an HTML formatted message
using CDONTS?

Thanks
RE: Sending HTML formatted mail using CDONTS

--
Paul Turley, MCSD, MCAD, MCT, MSF Practitioner, A+ Technician
pa**@createsolutions.net

Nov 17 '05 #2

P: n/a
Hello,

It is suggested to use System.Web.Mail.

If you would like to use CDONTS, please refer to the following link. The
link is for ASP, but after some changes, you can use it for ASP.NET.

http://msdn.microsoft.com/library/en...gcdofornts.asp

HTH,

--
Parker Zhang
Microsoft Developer Support

This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.