Server 对象, ASP 0177 无效的类别字符串,谁能帮我改改!
来源:互联网 发布:2016淘宝指数在哪里看 编辑:程序博客网 时间:2024/05/16 15:08
急,谁能帮我改改!
错误类型:
Server 对象, ASP 0177 (0x800401F3)
无效的类别字符串
/manage/sendmailto.asp, 第 102 行
<%@language=vbscript codepage=936 %>
<!--#include file="Admin.asp"-->
<!--#include file="Conndb.asp"-->
<!-- #include file="Inc/Head.asp" -->
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="150" align="center" valign="top"> <table width="150" height="100%" border="0" cellpadding="0" cellspacing="0" class="HeaderTdStyle">
<tr>
<td align="center" valign="top"><table width="100%" height="24" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center">功能菜单</td>
</tr>
</table>
<table width="100%" height="90%" border="0" cellpadding="0" cellspacing="0" class="MenuBg">
<tr>
<td align="center" valign="top"><br> <table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="16%"><img src="../Img/Left_1.gif" width="28" height="11"></td>
<td width="84%" height="20"><font color="#FFFF00">邮件列表管理</font></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="34%" height="20" align="right"><img src="../Img/Left_1_1.gif" width="29" height="16"></td>
<td width="66%" valign="bottom"><a href="Maildefault.asp"><font color="#FFFF00">邮件列表设置</font></a></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="34%" height="20" align="right"><img src="../Img/Left_1_1.gif" width="29" height="16"></td>
<td width="66%" valign="bottom"><a href="Sendmail.asp"><font color="#FFFF00">发送邮件</font></a></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="34%" height="20" align="right"><img src="../Img/Left_1_1.gif" width="29" height="16"></td>
<td width="66%" valign="bottom"><a href="Viewuser.asp"><font color="#FFFF00">用户管理</font></a></td>
</tr>
</table>
<table width="90%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="34%" height="20" align="right"><img src="../Img/Left_1_1.gif" width="29" height="16"></td>
<td width="66%" valign="bottom"><a href="Adduser.asp"><font color="#FFFF00">添加用户</font></a></td>
</tr>
<tr>
<td height="20" align="right"> </td>
<td valign="bottom"> </td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="862" align="center" valign="top">
<br>
<br>
<b>发 送 邮 件</b><br>
<br>
<br>
<%
'发送
set rs=server.createobject("adodb.recordset")
sql="select * from email "
rs.open sql,conn,1,3
'读取默认的邮件标题及内容
set rs1=server.createobject("adodb.recordset")
sql1="select * from maildefault "
rs1.open sql1,conn,1,3
'设置发信人
frommail=request("frommail")
if frommail="" then
frommail=rs1("frommail")
end if
'设置邮件主题
mailsubject=request("mailsubject")
if mailsubject="" then
mailsubject=rs1("mailsubject")
end if
'设置邮件内容
mailbody=request("mailbody")
if mailbody="" then
mailbody=rs1("mailbody")
end if
'判断对谁发信
tomail=request("tomail")
'写发信信息
response.write "发信人地址: "&frommail
response.write "<br><br><br>"
if tomail<>"" then
response.write "收信人地址:"&tomail
else
response.write "正在进行邮件群发!"
end if
if tomail<>"" then
'对于单一用户发信
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = frommail
objCDOMail.To = tomail
objCDOMail.Subject = mailsubject
objCDOMail.Body = mailbody
objCDOMail.Send
Set objCDOMail = Nothing
else
'对于在用户数据库中的全体用户发信
for i=1 to rs.recordcount
tomail=rs("email")
Set objCDOMail = Server.CreateObject("CDONTS.NewMail")
objCDOMail.From = frommail
objCDOMail.To = tomail
objCDOMail.Subject = mailsubject
objCDOMail.Body = mailbody
objCDOMail.Send
Set objCDOMail = Nothing
rs.movenext
next
end if
response.write "<br><br><br>"
response.write "邮件发送成功!^&^"
'response.write "<br><br><br>"
'response.write rs1("mailsubject")
%> <a href="Sendmail.asp">返回</a>
</td>
</tr>
</table>
<!-- #include file="Inc/Foot.asp" -->
- Server 对象, ASP 0177 无效的类别字符串,谁能帮我改改!
- IIS错误“Server 对象, ASP 0177 (0x800401F3)无效的类别字符串”的对策
- 错误类型 Server 对象, ASP 0177 (0x800401F3)无效的类别字符串—解决方法
- Server 对象, ASP 0177 (0x800401F3)无效
- 关于Jmail无效的类别字符串
- Delphi2010 无效的类别字符串, ProgID: "ADOX.Catalog"问题
- [ASP]IIS错误"Server 对象,ASP 0177 (0x800401F3)无效..."对策
- sql2000创建所有关系图时提示“无效的类别字符串”的解决办法
- delphi7连接excel有的机出现‘无效的类别字符串’解决办法
- delphi CreateOLEObject()调用 提示 dax error 错误 无效的类别字符串
- 用c语言编的题 帮我改改吧
- ASP对象server的实践
- SQL Server 函数的类别
- ASP的内置对象-Server对象
- ASP.NET的内置对象:Server对象
- 改改你的毛病
- asp.net报错:“无效的模式字符串”
- SQL server 2008 中 对象名无效的问题
- 可变参数函数,原理,实现,UART寄存器操作
- work两周有感。
- (转载)J2ME学习笔记(七)
- 测试你打游戏所适合的职业
- 保证你现在和未来不失业的十种关键技术 出处:CSDN
- Server 对象, ASP 0177 无效的类别字符串,谁能帮我改改!
- 全局变量的定义
- (转载)J2ME学习笔记(八)
- (转载)J2ME学习笔记(九)
- 电脑程序员的蘑菇定律(转贴)
- 自动安装SQL Server数据库
- 成功人士的秘诀
- 2005年4月24日
- 请问如何在内核中得到网卡的mac地址?根据网卡名子得到mac地址也可