使用JMail时出错,

zitiger 2003-09-18 11:14:38
检查权限时Server.CreateObject 的调用失败。
服务器对象 错误 'ASP 0178 : 80070005'

Server.CreateObject 访问错误

/do.asp,行2

检查权限时Server.CreateObject 的调用失败。对此对象的访问被拒


就一句话<%
Set Jmail= Server.CreateObject("Jmail.Message")
%>
...全文
25 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
dclovewj 2003-09-19
  • 打赏
  • 举报
回复
在发件人这个文本框中填的邮箱和你在程序中写的是一个.
dclovewj 2003-09-19
  • 打赏
  • 举报
回复
<html>
<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>收件人</title>
</head>
<body>
<form action="" method="post" name="form1">
<table width="90%">
<tr>
<td>收件人</td>
<td><input type="text" name="receipt" size="20"></td>
</tr>
<tr>
<td> </td>
<td><input name="receipt1" type="text" id="receipt1" size="20"></td>
</tr>
<tr>
<td>发件人</td>
<td><input type="text" name="sender" size="20"></td>
</tr>
<tr>
<td>主题</td>
<td><input type="text" name="subject" size="35"></td>
</tr>
<tr>
<td>内容</td>
<td><textarea name="body" rows="2" cols="35" wrap="soft"></textarea></td>
</tr>
<tr>
<td> </td>
<td><input type=file name="file"
value="" size=40></td>
</tr>
<tr>
<td> </td>
<td><input type="submit" value="发送"></td>
</tr>
</table>
</form>

<%
if request("receipt")<>"" and request("sender")<> "" and request("subject")<>"" then
set jmail=server.createobject("jmail.message")
jmail.addrecipient request("receipt")
jmail.addrecipient request("receipt1")
jmail.from=request("sender")
jmail.subject=request("subject")
jmail.body=request("body")
strfile=request("file")
if strfile<>"" then
jmail.addattachment strfile
end if
if not jmail.Send("你在163的用户名:密码@smtp.163.com" ) then


Response.write "邮件未能发送</center>"
else
Response.write "成功"
end if

jmail.close
set jmail=nothing

else
response.write "必须填写收件人,发件人和邮件主题"
end if
%>
</body>

</html>


dclovewj 2003-09-19
  • 打赏
  • 举报
回复
到网上先搜一个w3 jmail 4.3
下载,安装,注册
在程序中写asp代码,如:
dafei0320 2003-09-19
  • 打赏
  • 举报
回复
我一直用cdonts.newmail
请问JMAIL在哪儿下啊??
THINK YOU!
zitiger 2003-09-18
  • 打赏
  • 举报
回复
我用了好几个探针,显示出来都是支持的
luluso 2003-09-18
  • 打赏
  • 举报
回复
服务器上没装jmail组件
zitiger 2003-09-18
  • 打赏
  • 举报
回复
t

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧