Set mail = Server.CreateObject("CDONTS.NewMail")

Associate
Joined
12 Jun 2003
Posts
2,033
Location
Either Tonbridge or Biggin Hill
Hi,
I'm developing a contact form in ASP, however when I upload the page to Easyspace I get the following error:

Code:
HTTP 500.100 - Internal Server Error - ASP error
Apache/2.0.46 (CentOS)

Technical Information (for support personnel)

    * Error Type:
      CDONTS.NewMail.1 (0x80020009)
      Component is disabled

Does anyone know a way round this? I've opened a support ticket with Easyspace, but I'd like to try and workaround the problem for now if possible..
 
Looks like the NewMail component is disabled on the webserver, doesn't suprise me as EasySpace are one of the worst hosts around, their support is awful and their prices are expensive compared to many other hosts.

I don't think you can do much about that apart from switching hosts.
 
Changing hosts may not be an option, as it's not my site.

It appears they're running some sort of ASP emulation on a Unix box, so I wondered there was a different mail component I could use instead of CDONTS.
 
Ok, in my code I substituted the word CDONTS for CDOSYS and now I get the following:

Code:
Error Type:
Server object, ASP 0177 (0x800401F3)
System message, messageid = 0x800401f3
 
You can't just replace it. Google "CDOSYS". :)

Edit: Oops, didn't take much notice of the error. In that case it's still not working - time to speak to Easyspace. Maybe you can be moved to a proper Windows server?
 
What type of ASP implementation are they using? Sun ONE? Chilisoft? If it is Chilisoft 3.2.6 (i think) then try this:

Dim objNewMail, emailbody

emailbody = "This is the body of the email"

Set objNewMail = Server.CreateObject("CDONTS.NewMail")

objNewMail.From = "[email protected]"
objNewMail.To = "[email protected]"
ObjNewMail.BodyFormat = 1
objNewMail.Subject = "Email Subject"
objNewMail.Body = emailbody
objNewMail.Send

Set objNewMail = Nothing

This works fine on our host who use Chilisoft ASP on a Linux box.
 
Back
Top Bottom