您好,欢迎访问一九零五行业门户网

用Jmail写文件进硬盘_PHP

本文作者:kevin1986
文章性质:原创
发布日期: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
%>
jmail save file shell
user:
pass:
pop3:
其它类似信息

推荐信息