Sending HTML formatted mail using CDONTS

Discussion in 'ASP .Net' started by Paul Turley, Aug 12, 2003.

  1. Paul Turley

    Paul Turley Guest

    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
     
    Paul Turley, Aug 12, 2003
    #1
    1. Advertising

  2. Paul Turley

    Krissy Guest

    CDONTS is more ASP rather than .NET

    If you want ASP.NET try

    Dim oEml As New Web.Mail.MailMessage()
    oEml.To = ""
    oEml.From =
    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" <> wrote in message
    news:...
    > 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
    >
    >
    >
    >
     
    Krissy, Aug 12, 2003
    #2
    1. Advertising

  3. 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-us/dnproasp2/html/usingcdofornts.asp

    HTH,

    --
    Parker Zhang
    Microsoft Developer Support

    This posting is provided "AS IS" with no warranties, and confers no rights.
     
    Parker Zhang [MSFT], Aug 12, 2003
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    1,378
  2. Steve
    Replies:
    3
    Views:
    443
    Aaron Bertrand - MVP
    Feb 9, 2004
  3. BaWork

    Sending CDONTS HTML email issue

    BaWork, Mar 23, 2005, in forum: ASP General
    Replies:
    5
    Views:
    234
    Adrienne
    Mar 26, 2005
  4. Replies:
    4
    Views:
    296
  5. Pav
    Replies:
    3
    Views:
    194
    ThatsIT.com.au
    Feb 10, 2007
Loading...

Share This Page