Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2004
    Posts
    51

    Question Unanswered: email page not working

    I have an email page set up and when the person completes the form it connects to another page which sends it aand give message that the page was send, but i am getting an error of invalid class string " Set mail = Server.CreateObject("CDONTS.NewMail")%>" not really sure why

    any suggestions??

    Newfiebullet

  2. #2
    Join Date
    Jan 2003
    Location
    New York
    Posts
    160
    do you have a smtp engine installed ?
    Beyond Limitation

  3. #3
    Join Date
    Jun 2003
    Location
    USA
    Posts
    1,032
    http://www.asp101.com/samples has some good e-mail examples such as the e-mail attachment example which uses the newer CDO (instead of the outmoded CDONTS).
    J. Paul Schmidt, Freelance Web and Database Developer
    www.Bullschmidt.com
    Access Database Sample, Web Database Sample, ASP Design Tips

  4. #4
    Join Date
    Mar 2004
    Posts
    51
    Hello: Thanks for the response

    I am running windows xp pro, and is just testing the web page locally but no luck and i read that CDONTS is make for windows server nt or 2000 is there any differnce between xp and 2000, here is some of the code

    <%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <%
    dim Message

    Set mail = Server.CreateObject("CDONTS.NewMail")%>
    mail.From = request("txtEmail")
    mail.To = "XXX@health.com
    mail.Subject = "Services Database"
    mail.Body = Message
    mail.Send
    Set mail = Nothing
    This is only the main lines

    Should the CDONTS work with XP


    Newfiebullet

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •