RSS
热门关键字:  数据挖掘  数据仓库  商业智能  人工智能  搜索引擎
当前位置 :| 首页>电脑常识>MAC小型机>

为imail和Mdaemon设计Webmail

来源: 作者:unkonwn 时间:2005-02-20 点击:
<%@ LANGUAGE="VBSCRIPT" %>
<%
"*********************************

数据挖掘研究院


"这是显示邮件内容窗口的文件,根据邮件列示窗口(maillist1.asp)传来的邮件ID来显示所选的邮件

数据挖掘研究院


"*********************************
%>
<html>
<head>
<title>读邮件</title>
</head>
<body>
<%
i=clng(Request.QueryString("id")) "要显示邮件的ID
strserver=session("strserver")
strAccount=session("straccount")
strPassword=session("strpassword")
Set POP3 = CreateObject("EasyMail.POP3.5")
POP3.LicenseKey = "awa/S19I500R1AX30C0R3100"
POP3.MailServer = strServer
POP3.Account = strAccount
POP3.Password = strPassword
pop3.PreferredBodyFormat=1 "指定内容显示格式
pop3.TimeOut=300 数据挖掘研究院


x = POP3.Connect
If x <> 0 Then
Response.Write "<p align=center>连接错误: " + CStr(x) + "<br><br>请和管理员联系"
POP3.Disconnect
Response.End
End If

数据挖掘研究院


x = POP3.DownloadMessages(0)
If x <> 0 Then
Response.Write "下载错误: " + CStr(x) +"<br><br>请和管理员联系"
POP3.Disconnect
Response.End
End If

数据挖掘实验室


Response.Write replace(POP3.Messages.item(i).bodytext,chr(13),"<br>") "显示邮件正文
Response.Write "<hr>"


if pop3.messages.item(i).Attachments.Count>0 then "如果该邮件有附件
%>
<P></p>
<table border=1 align="left" cellspacing="0">
<tr><td>文件名</td><td>大小</td><tr>
<%
For k = 1 To pop3.messages.item(i).Attachments.Count "按附件数循环显示所有附件名
Response.Write ("<tr><td>")%>
<a href=# onClick=javascript:window.open("saveatt.asp?msgid=<%=i%>&attid=<%=k%>","getatt","width=640,height=480,scrollbars=yes");>
<%=pop3.Messages.item(i).Attachments(k).name%></a></td><td>
<%Response.Write cstr(pop3.Messages.item(i).Attachments(k).size)
Response.Write "</td></tr>"
Next
%>
</table>
<%
end if
POP3.Disconnect
" Set POP3 = Nothing
%>
</body>
</html>

数据挖掘实验室

最新评论共有 0 位网友发表了评论
发表评论
评论内容:不能超过250字,需审核,请自觉遵守互联网相关政策法规。
匿名?