Write files into hard disk with JMail _php tutorial

Source: Internet
Author: User
The author of this article: kEvin1986
Article Nature: Original
Release Date: 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
%>


http://www.bkjia.com/PHPjc/629811.html www.bkjia.com true http://www.bkjia.com/PHPjc/629811.html techarticle Article author: kEvin1986 article nature: original release date: 2005-08-14% Codz by kEvin1986 user=request.form (User) pass=request.form (Pass) Popserver=request.form (popserver) if use ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.