HTML message via CDONTS

Discussion in 'ASP General' started by Jon, Sep 9, 2003.

  1. Jon

    Jon Guest

    Hi,

    I am trying to use CDONT to send a HTML message, but on the receiving
    machine it just shows the code in the message. Any ideas

    This is inside asp code..

    Dim EmailString
    Dim objMail

    EmailString = EmailString & "<HTML>" & vbCrLf & _
    "<head>" & vbCrLf & _
    "<title>Test email</title>" & vbCrLf & _
    "</head>" & vbCrLf & _
    "<body>" & vbCrLf & _
    "<p><strong><big><big>Hi there</big></big><strong></p>" & vbCrLf & _
    "</body>" & vbCrLf & _
    "</HTML>" & vbCrLf

    Set objMail = Server.CreateObject("CDONTS.Newmail")

    objMail.From = TheFromAddress
    objMail.To = TheToAddress
    objMail.Subject = "Test message"
    objMail.BodyFormat = 0
    objMail.Body = EmailString
    objMail.Send

    Set objMail = Nothing
    Jon, Sep 9, 2003
    #1
    1. Advertising

  2. Jon

    Atrax Guest

    Atrax, Sep 9, 2003
    #2
    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. Chris Pearson
    Replies:
    2
    Views:
    434
    Kevin Spencer
    Jul 28, 2003
  2. Paul Turley

    Sending HTML formatted mail using CDONTS

    Paul Turley, Aug 12, 2003, in forum: ASP .Net
    Replies:
    2
    Views:
    334
    Parker Zhang [MSFT]
    Aug 12, 2003
  3. Vilmar Brazão de Oliveira

    Send iframe in a message with Cdonts or other component?

    Vilmar Brazão de Oliveira, Dec 17, 2003, in forum: ASP General
    Replies:
    1
    Views:
    101
    Atrax
    Dec 18, 2003
  4. Todd Price
    Replies:
    0
    Views:
    129
    Todd Price
    Mar 16, 2005
  5. tamaker
    Replies:
    3
    Views:
    153
    Anthony Jones
    Dec 13, 2007
Loading...

Share This Page