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, Aug 12, 2003
    #1
    1. Advertisements

  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)
     
    Krissy, Aug 12, 2003
    #2
    1. Advertisements

  3. Parker Zhang [MSFT], Aug 12, 2003
    #3
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.