imap

Read POP3/IMAP attachment with PHP

用法:

<?

   //$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

?>

(continue reading…)


Writing a mail client that handles attachments with PHP

When you think about writing a mail client in PHP, beware it’s fuzzy because of missing documentation on the imap functions in PHP.
PHP uses the imap functions to fetch and handle mailboxes (also POP3) just a matter of how you connect to your mailaccount. (continue reading…)


Copyright © 1996-2010 Add Lives. All rights reserved.
iDream theme by Templates Next | Powered by WordPress