Home >Backend Development >PHP Tutorial >An example of pop3 email collection_PHP tutorial

An example of pop3 email collection_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 17:31:331159browse

test_pop3.php(as the current mainstream development language)



Test for Manuel Lemoss php<font class="reblank"> (As the current mainstream development language)</font> POP3 class


require("pop3.php(As the current mainstream development language)");

$user="user";
$password="passwd";
$apop=0;
$pop3_connection=new pop3_class;
$pop3_connection->hostname="mail.xiaocui.com";
if(($error=$pop3_connection->Open())=="")
{
echo "

Connected to the POP3 server "$pop3_connection->hostname".
";
if(($error=$pop3_connection->Login($user,$password,$apop))=="")
{
echo "
User "$ user" logged in.
";
if(($error=$pop3_connection->Statistics(&$messages,&$size))=="")
{
echo "
There are <b&gt ;$messages</b> messages in the mail box with a total of <b>$size</b> bytes.
“; ),$message=0;$message         echo "
Message ",Key($result)," - ",$result[ Key($result)]," bytes.
";
                                                                                                    : ---Message headers starts below--- ";
                       for ($line=0; ; ";
echo "
---Message headers ends above---
---Message body starts below---
";
                      for ($line=0; ; ";



http://www.bkjia.com/PHPjc/509051.html

www.bkjia.com

true

http: //www.bkjia.com/PHPjc/509051.html

TechArticle

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn