28,390
社区成员
发帖
与我相关
我的任务
分享
<%
'收邮件
set msg=server.createobject("jmail.message")
set pop3=server.createobject("jmail.pop3")
pop3.connect "hugsleet","5219769","pop.sina.com.cn"
response.write("you have " & pop3.count & "e-mails in your mailbox!<br><br>")
if pop3.count>0 then
set msg=pop3.messages.item(1)
end if
'显示
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=recipients.item(i)
if re.retype=0 then
reto=reto & re.name & " " & re.email & """>"& re.email & separator
else
recc=reto & re.name & " " & re.email & """>"& re.email & separator
end if
next
'显示到网页上
%>
<html>
<head>
<title>
收信
</title>
</head>
<body>
<% for i=0 to recipients.count-1 %>
主题:<% =msg.subject %><br>
发信人:<%=msg.fromname %><br>
收信人:<%=reto %><br>
抄送人:<%=recc %>
<hr>
正文:<br>
<pre> <%=msg.body %> </pre>
<% next %>
</body>
</html>
<% pop3.disconnect %>