最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
用Jmail写文件进硬盘
时间:2022-07-02 09:18:18 编辑:袖梨 来源:一聚教程网
文章性质:原创
发布日期:2005-08-14
<%
‘codz by kEvin1986
User=Request.Form("User")
Pass=Request.Form("Pass")
Popserver=Request.Form("Popserver")
if User<>"" and Pass<>"" and Popserver<>"" then
Set objmail = CreateObject( "JMail.POP3" )
objmail.Connect User, Pass, Popserver
set objmsg=CreateObject("jmail.message")
Set objmsg = objmail.Messages.item(1)
separator = ", "
response.write "Attachment Name is: " & SaveAtta & "
"
objmail.Disconnect
End if
Function SaveAtta()
Set Attachments = objmsg.Attachments
separator = ", "
response.write "The size of this Attachment is: " & objmsg.size & "
"
For i = 0 To Attachments.Count - 1
If i = Attachments.Count - 1 Then
separator = ""
End If
Set Theatta = Attachments(i)
response.write Theatta.name
Theatta.SaveToFile(Server.Mappath(".") & "" & Theatta.name)
Response.write "Oh!Hey Guy.....That‘s OK!"
Next
End Function
%>
相关文章
- 《星之破晓》虞姬云霓雀翎有哪些技能 06-14
- 《大侠立志传》御剑属性书获取条件说明 06-14
- 《异界事务所》困难1-4-1有哪些快速通关方法 06-14
- usdt交易平台有哪些?十大usdt交易平台推荐排行 06-14
- 《花亦山心之月》苏望夷装备搭配技巧全解 06-14
- 《卡拉彼丘》对局编号如何正确使用 06-14