Jmail收邮件时发生错误,帮忙!

So_Long 2005-02-25 09:51:16
错误类型:
jmail.POP3 (0x8000FFFF)
WSAGetLastError() returned 10061, Connection refused
/test/GetMail.asp, 第 10 行

代码:
<%
set pop3=server.CreateObject("Jmail.POP3")
pop3.Connect "XXXXXXX","XXXXXXX","smtp.21cn.com" '// 这行是第10行
response.Write("You have <font color=red>"&pop3.count&"</font>E-mails in your mailbox!<br><br>")
response.End()
if pop3.count>0 then
set msg=pop3.Messages.item(1)
Reto=""
Recc=""
set recipients=msg.Recipients
separator=", "
for i=0 to recipients.count-1
if i=recipients.count-1 then
separator=""
end if
set re=recipient.item(i)
if re.ReType=0 then
Reto=Reto&re.name&" "&re.EMail&""">"& re.EMail&separator
else
Recc=Recc&re.name&" "&re.EMail&""">"& re.EMail&separator
end if
next
end if
%>
主 题:<%=msg.Subject%><br>
发件人:<%=msg.FromName%><br>
收件人:<%=Reto%><br>
抄 送:<%=Recc%><br>
正 文:<br>
     <pre><%=msg.body%></pre>
<%pop3.Disconnect%>
...全文
102 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
kwxx 2005-02-26
  • 打赏
  • 举报
回复
连接被拒绝, 你看看是不是用户名不对吧, 有些网站需要加上@xxx.xxx 的后缀的

或者是服务器不支持这样的连接... ??
So_Long 2005-02-26
  • 打赏
  • 举报
回复
怎么没人帮忙啊
So_Long 2005-02-25
  • 打赏
  • 举报
回复
up
So_Long 2005-02-25
  • 打赏
  • 举报
回复
在线等。。。。

28,391

社区成员

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

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