最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
jmail4.1用pop3收信的例子。
时间:2022-06-30 11:34:53 编辑:袖梨 来源:一聚教程网
<% Set pop3 = Server.CreateObject( "JMail.POP3" )
'pop3的连接用户名,密码,pop3地址
pop3.Connect "username", "password", "mail.mydomain.com"
Response.Write( "你有" & pop3.count & " 封邮件。
" )
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 & " (" & re.EMail & ")" & separator
else
ReCC = ReTo & re.Name & " (" & re.EMail & ")" & separator
End If
Next
'这个程序得到附件,并且保存到服务器的硬盘上。也可以返回附件的详细连接
'pop3的连接用户名,密码,pop3地址
pop3.Connect "username", "password", "mail.mydomain.com"
Response.Write( "你有" & pop3.count & " 封邮件。
" )
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 & " (" & re.EMail & ")" & separator
else
ReCC = ReTo & re.Name & " (" & re.EMail & ")" & separator
End If
Next
'这个程序得到附件,并且保存到服务器的硬盘上。也可以返回附件的详细连接
相关文章
- 《时光杂货店》人才推荐细节解读 06-16
- ZKJ、KOGE暴跌80%成积分“绞肉机”,币安Alpha还能玩吗? 06-16
- 《白荆回廊》鸢技能有哪些 06-16
- 盘点最热门正规数字资产全球交易所排行-低手续费现货交易所币安推荐 06-16
- 《交错战线》好友拜访有什么好的方法可用 06-16
- 《无期迷途》降临烙印深度介绍 06-16