<% Set pop3 = Server.CreateObject( "JMail.POP3" )
pop3.Connect "username", "password", "pop3mail.intels.net"
' POP3的连接用户名,密码,POP3地址.
Response.Write( "你现在有" & pop3.count & " 封邮件。<br><br>" )
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 = Recipients.item(i)
If re.ReType = 0 Then
ReTo = ReTo & re.Name & "(<a href=""mailto:"& re.EMail &""">" & re.EMail & "</a>)" &
separator
else
ReCC = ReTo & re.Name & "(<a href=""mailto:"& re.EMail &""">" & re.EMail & "</a>)" & separator
End If
Next
' 以上获取所有收件人,并存储.
Function getAttachments()
Set Attachments = msg.Attachments
separator = ", "
For i = 0 To Attachments.Count - 1
If i = Attachments.Count - 1 Then
separator = ""
End If
Set at = Attachments(i)
at.SaveToFile( "c:\intels\email\attachments\" & at.Filename )
getAttachments = getAttachments & "<a href=""/intels/email/attachments/" & at.Filename &""">" &_
at.FileName & "(" & at.Size & " bytes)" & "</a>" & separator
Next
End Function
' 以上是程序得到附件,并保存到服务器上,也可返回附件链接.
%>
<html>
<body>
<TABLE>
<tr>
<td>主题:撼雪喷云向你问好!</td>
<td><%= msg.Subject %></td>
</tr>
<tr>
<td>发件人:李雁冰@163.net</td>
<td><%= msg.FromName %></td>
</tr>
<tr>
<td>收件人:宋颜浩@163.net</td>
<td><%= ReTO %></td>
</tr>
<tr>
<td>抄送:申朝阳@163.net</td>
<td><%= ReCC %></td>
</tr>
<tr>
<td>附件:随风起舞的传说</td>
<td><%= getAttachments %></td>
</tr>
<tr>
<td>内容:乌里哇啦乌里哇啦……</td>
<td><pre><%= msg.body %></pre></td>
</tr>
</TABLE>
</body></html>
<% end if
pop3.Disconnect
%>
[1]
更新日志
- 小骆驼-《草原狼2(蓝光CD)》[原抓WAV+CUE]
- 群星《欢迎来到我身边 电影原声专辑》[320K/MP3][105.02MB]
- 群星《欢迎来到我身边 电影原声专辑》[FLAC/分轨][480.9MB]
- 雷婷《梦里蓝天HQⅡ》 2023头版限量编号低速原抓[WAV+CUE][463M]
- 群星《2024好听新歌42》AI调整音效【WAV分轨】
- 王思雨-《思念陪着鸿雁飞》WAV
- 王思雨《喜马拉雅HQ》头版限量编号[WAV+CUE]
- 李健《无时无刻》[WAV+CUE][590M]
- 陈奕迅《酝酿》[WAV分轨][502M]
- 卓依婷《化蝶》2CD[WAV+CUE][1.1G]
- 群星《吉他王(黑胶CD)》[WAV+CUE]
- 齐秦《穿乐(穿越)》[WAV+CUE]
- 发烧珍品《数位CD音响测试-动向效果(九)》【WAV+CUE】
- 邝美云《邝美云精装歌集》[DSF][1.6G]
- 吕方《爱一回伤一回》[WAV+CUE][454M]