Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Aug 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Server object error

    I am not a coder but trying to assist a developer: On this website is an online form that when you click submit should email a message to an account. (.asp page)The website is installed on Windows 2003SP1 and IIS 6.0. The original code stopped working after a server crash. It was: Dim oMailMessage

    ' Instantiate a NewMail object
    Set oMailMessage = Server.CreateObject("CDONTS.NewMail")

    ' Send an email to to@somewhere.com from from@somewhere.com
    oMailMessage.from = "info@bestcruises.com"
    oMailMessage.to = "leads@bestcruises.com"
    oMailMessage.subject = "Online Information Request"
    oMailMessage.body = body
    oMailMessage.Send()

    The new code he was told to install is:
    Dim objCDO
    Set objCDO = Server.CreateObject("CDONTS.NewMail")
    objCDO.From = "info@bestcruises.com"
    objCDO.To = "leads@bestcruises.com"
    objCDO.Subject = "Online Information Request"
    objCDO.Body = body
    objCDO.Send()
    Set objCDO = Nothing




    'Dim oMailMessage

    ' Instantiate a NewMail object
    'Set oMailMessage = Server.CreateObject("CDONTS.NewMail")

    ' Send an email to to@somewhere.com from from@somewhere.com
    'oMailMessage.from = "info@bestcruises.com"
    'oMailMessage.to = "leads@bestcruises.com"
    'oMailMessage.subject = "Online Information Request"
    'oMailMessage.body = body
    'oMailMessage.Send()

    The error message continually returned is:[B]Server object error 'ASP 0177 : 800401f3'

    Server.CreateObject Failed

    /Destinations/Info.asp, line 847

    800401f3

  • #2
    Regular Coder martin_narg's Avatar
    Join Date
    Jul 2002
    Location
    Chamonix, France
    Posts
    600
    Thanks
    1
    Thanked 3 Times in 3 Posts
    This is an asp error, not a javascript one.

    I would suggest looking into two things:

    1) Check your permissions. If the default IIS user does not have permission to create server components, it will throw this error.

    2)Make sure that CDONTS is not disabled on your system and not corrupted in any way.

    Hope this helps

    m_n
    "Cos it's strange isn't it. You stand in the middle of a library and go 'Aaaaaaaaaaaaaaaaggggggghhhhhhh!'
    and everybody just stares at you. But you do the same in an aeroplane, and everybody joins in."
    -Tommy Cooper


  •  

    Posting Permissions

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