asp邮件组件 CDONTS.DLL出错?
我用ASP的邮件组件CDONTS.DLL发邮件.
CDONTS.DLL已经注册.在DOS下Regsvr32 cdonts.dll已成功注册.可是我运行程序时提示出错:
Server 对象, ASP 0178 (0x80070005)
检查权限时,对 Server.CreateObject 的调用失败。拒绝对此对象的访问。
我的程序:
<%@LANGUAGE= "VBSCRIPT " CODEPAGE= "936 "%>
<html>
<%
Dim objCDO
Set objCDO = Server.CreateObject( "CDONTS.NewMail ")
%>
<%
'This code assumes the above CDO
'instantiation code is included
objCDO.To = "computerzzz@126.com "
objCDO.From = "gates@microsoft.com "
'objCDO.cc = "barksdale@netscape.com,jobs@apple.com "
Dim txtSubject
txtSubject = "Hello Scott! We were wanting your advice on some programming issues. Please come to Redmond at your earliest convenience for a very fat check! "
objCDO.Subject = "Attn: Scott, we need you!! "
objCDO.Body = txtSubject
objCDO.Send
Set objCDO=Nothing
%>
<head>
<meta http-equiv= "Content-Type " content= "text/html; charset=gb2312 ">
<title> 无标题文档 </title>
</head>
<body>
send mail.
</body>
</html>
------解决方案--------------------哪句错了?
------解决方案--------------------试试
把WEB服务器上IIS的默认用户改为本地的Administrator用户就可以了
http://www.stefli.com/blog/blogview.asp?logID=98&page=3