/ Published in: PHP
URL: http://www.melonfire.com/community/columns/trog/print.php?id=275
Expand |
Embed | Plain Text
<?php // include class include("Net/POP3.php"); // initialize object $pop3 = new Net_POP3(); // attempt connection to server if (!$pop3->connect("example.com", 110)) { } // attempt login $ret = $pop3->login("john", "doe"); } // print number of messages found // print message headers if ($pop3->numMsg() > 0) { for ($x=1; $x<=$pop3->numMsg(); $x++) { $hdrs = $pop3->getParsedHeaders($x); } } // disconnect from server $pop3->disconnect(); ?>
You need to login to post a comment.
