Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Sending HTML formatted mail using CDONTS

Reply
Thread Tools

Sending HTML formatted mail using CDONTS

 
 
Paul Turley
Guest
Posts: n/a
 
      08-12-2003
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
http://www.velocityreviews.com/forums/(E-Mail Removed)



 
Reply With Quote
 
 
 
 
Krissy
Guest
Posts: n/a
 
      08-12-2003
CDONTS is more ASP rather than .NET

If you want ASP.NET try

Dim oEml As New Web.Mail.MailMessage()
oEml.To = "(E-Mail Removed)"
oEml.From = (E-Mail 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)


"Paul Turley" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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
> (E-Mail Removed)
>
>
>



 
Reply With Quote
 
 
 
 
Parker Zhang [MSFT]
Guest
Posts: n/a
 
      08-12-2003
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.

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help with CDONTS and sending mail?????? =?Utf-8?B?SGFucw==?= Windows 64bit 4 02-23-2007 01:35 PM
Problem with CDONTS sending mail to Lotus and MS Exchange. Pav ASP General 3 02-10-2007 02:52 AM
pls help me when i sent mail, it vil sending twice instead of once ,am using java.mail,am sending my code.... shailajabtech@gmail.com Java 0 09-28-2006 06:38 AM
Sending CDONTS HTML email issue BaWork ASP General 5 03-26-2005 09:27 PM
CDONTS and sending HTML and text versions simultaneously Steve ASP General 3 02-09-2004 06:53 PM



Advertisments