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 4 of 4
  1. #1
    New Coder
    Join Date
    Apr 2005
    Posts
    13
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Server.CreateObject Failed

    hi

    i have a form in my site which is generated as mail, i have shifted to a new hosting company and using this code:

    strSubject = "Article" & " " & num
    strToEmail = "xyz@xyz.com"
    Set objCDONTS = Server.CreateObject("CDONTS.NewMail")
    objCDONTS.From = namef
    objCDONTS.To = strToEmail
    objCDONTS.Subject = strSubject
    objCDONTS.BodyFormat=0
    objCDONTS.MailFormat=0
    objCDONTS.Importance = 1 objCDONTS.Body = HTML
    objCDONTS.Send
    Set objCDONTS = Nothing


    this code is working perfectly before, but i dont know with the new hosting provider it gives me error:

    Server object error 'ASP 0177 : 800401f3'

    Server.CreateObject Failed

    /beta/pages/sendarticle.asp, line 125

    800401f3


    i made a contact with the support they told me to use SMTP 127.0.0.1 which i dont really know what it is, pls. help..

  • #2
    Senior Coder Spudhead's Avatar
    Join Date
    Jun 2002
    Location
    London, UK
    Posts
    1,856
    Thanks
    8
    Thanked 110 Times in 109 Posts
    Quote Originally Posted by designer_bhutan
    i made a contact with the support they told me to use SMTP 127.0.0.1 which i dont really know what it is, pls. help..
    It sounds like they're telling you that the mail server - which you'll be sending emails through - is residing on the webserver. Which is fairly useless knowledge at this point. What you want to know from them is which ASP email components they have installed on the webserver, because it doesn't look like they have the one you're trying to use.

  • #3
    Senior Coder nikkiH's Avatar
    Join Date
    Jun 2005
    Location
    Near Chicago, IL, USA
    Posts
    1,973
    Thanks
    1
    Thanked 32 Times in 31 Posts
    (more than likely...)
    It means they don't support the outdated CDONTS anymore and use CDOSYS.

    If this post contains any code, I may or may not have tested it. It's probably just example code, so no getting knickers in a bunch over a typo, OK? If it doesn't have basic error checking in it, such as object detection or checking if objects are null before using them, put that in there. I'm giving examples, not typing up your whole app for you. You run code at your own risk.
    Bored? Visit
    http://www.kaelisspace.com/

  • #4
    Regular Coder
    Join Date
    Sep 2004
    Posts
    152
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would agree w/ Nikki and would inquire with the hosting company what you should use to send e-mails via ASP. Server.CreateObject failed and I'm willing to bet that line 125 is this: Set objCDONTS = Server.CreateObject("CDONTS.NewMail"), which means your object did not get created (because it probably doesn't exist on the server).


  •  

    Posting Permissions

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