PDA

View Full Version : Automation server can't create object


moiseszaragoza
09-16-2010, 02:35 PM
I have this code working another server but not it stopped working


<%@Language=JScript%>
<%
var mail = Server.CreateObject("CDONTS.NewMail");
mail.BodyFormat = 0;
mail.MailFormat = 0;
mail.ContentBase = "";
mail.To = "mZaragoza@xxx.com";
mail.From = "moisesz@xxx.com";
mail.Subject = "subject";
mail.Body = "tmpBody";
%>




Error

Microsoft JScript runtime error '800a01ad'
Automation server can't create object
/app/test/mail3.asp, line 3

Old Pedant
09-16-2010, 07:20 PM
Didn't you ask this already???

It means that the CDONTS object (DLL) is *NOT* installed on that server.

CDONTS is considered obsolete by Microsoft. You *can* install it yourself, but it's not installed by default on modern servers. Basically, it died at the same time that IIS 5 died.