用法:
<?
//$ServerName = "{localhost:143/imap}INBOX"; // For a IMAP connection (PORT 143)
//$ServerName = "{localhost:110/pop3}INBOX"; // For a POP3 connection (PORT 110)
require_once(“attachmentread.class.php”);
$host=”{my.mailserver.net:110/pop3}”; // pop3host
$login=”user1″; //pop3 login
$password=”passwd1″; //pop3 password
$savedirpath=”” ; // attachement will save in same directory where scripts run othrwise give abs path
$jk=new readattachment(); // Creating instance of class####
$jk->getdata($host,$login,$password,$savedirpath); // calling member function
?>