SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Member
    Join Date
    Jul 2001
    Location
    NJ
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP Scripting w. Personal Web Server -- CDONTS

    I am currently running Microsoft Personal Web Server so I can test out some ASP scripts before I upload them onto another server. Right now I am working on a form that takes the user's personal information and emails it to me using CDONTS.NewMail; however I am running into some problems.
    Any time I hit the "Submit Form" button on the bottom of my form, the following messages appear:

    Microsoft VBScript runtime error '800a01ad'

    ActiveX component can't create object: 'CDONTS.NewMail'

    The error messages appear when trying to process the command:

    Set MyCDONTSMail = CreateObject("CDONTS.NewMail")

    I think my problem is that I am missing the CDONTS library file (cdonts.dll). If this is the problem, would someone please tell me where I can get this file and where to install it on my computer. If not, I am open to any other suggestions. Thank you.

  2. #2
    ALT.NET - because we need it silver trophybronze trophy dhtmlgod's Avatar
    Join Date
    Jul 2001
    Location
    Scotland
    Posts
    4,836
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cdonts does not come with pws, as uve prolly have realised, and as far as i know, you cant run it on ows neway. this is cos it uses the mail server u get with winNT/2k and win98 doesnt have it. tho, i could be wrong

  3. #3
    SitePoint Member
    Join Date
    Jul 2001
    Location
    Carrollton, TX
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think you need to go to the Internet Options of your browser, and play with the ActiveX controls enable/disable under Security. Set them all to enable.

  4. #4
    SitePoint Member
    Join Date
    Jul 2001
    Location
    NJ
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    CDONTS on Win '98

    I didn't think that you could ge CDONTS working on Win '98 either until I read this article:

    http://www.webmasterbase.com/article.php/371/10

    As far as the ActiveX controls go in my Internet Options Security area: I'm going to have to check that out. I'm pretty sure though that the reason it cannot create a CDONTS.NewMail object is because it does not know what CDONTS is.

  5. #5
    SitePoint Member
    Join Date
    Jul 2001
    Location
    Carrollton, TX
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Let me know how it goes.

  6. #6
    SitePoint Evangelist pip's Avatar
    Join Date
    Jun 2001
    Location
    Cape Town, South Africa
    Posts
    548
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I've tried exactly the same thing when I first started with ASP and PWS. The CDONTS component is a Server based component, and should therefore only work if you're running NT. As dhtmlgod mentioned, it makes use of the mail server through NT or any other ASP enabled based server.

    What I usually do when I write an ASP page that uses CDONTS is add a few lines of script checking if the pages are running on the domain I am writing them for, or if they are on my computer. Then the form would work fine, but not use the functions written for sending the information via CDONTS.

    A simple example would be: (JavaScript)

    var domain = Request.ServerVariables("SERVER_NAME");

    if (domain == "www.pip.co.za") {
    sendMail();
    }

    submitForm();

    Thus one can test the return, and have everything else work correctly before upload. Thereafter you can set up the mail on your live server.
    - Pip
    ---------------------------------------------------------------------------------
    Nothing takes the taste out of peanut butter quite like unrequited love.

  7. #7
    SitePoint Guru
    Join Date
    Sep 1999
    Location
    Singapore
    Posts
    854
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If CDONTS is a no go for you, try Persist AspEmail, a freeware component.

    http://www.aspemail.com/


Bookmarks

Posting Permissions

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