Results 1 to 2 of 2

Thread: "CDONTS.NewMail" Not Working.

  1. #1

    Thread Starter
    Lively Member
    Join Date
    May 2000
    Location
    Antrim
    Posts
    80

    Unhappy

    Hi,

    I'm building a fault reporting application with Visual Interdev and am having problems automating e-Mail from an .Asp page.

    I'm using the following page to try and send my message:

    <%
    sub sendMail()

    set myMail = server.CreateObject("CDONTS.NewMail")
    myMail.From = WizDB
    myMail.To = "[email protected]"
    myMail.Subject = "Wizcon Fault"
    myMail.Body = "A Wizcon fault has been edited. The ref no of the fault is: " & session("refno") & "."
    myMail.Send
    Set myMail = Nothing

    end sub
    %>

    This returns the error:

    "Invalid Class String"

    My site runs on NT Workstation 4.0 SP6. Is this facility only available on NT Server or do I need to switch something on?

    Any suggestions would be appreciated.

    Best regards,

    Rob Brown.

  2. #2
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810

    Thumbs down

    As it's name implies 'Collaboration Data Objects for Windows NT Server', I assume you need to be running from an NT Server, and not a Workstation.

    Look up help on the MSDN as there is loads of stuff there.

    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

Posting Permissions

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



Click Here to Expand Forum to Full Width