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

An example of pop3 email collection_PHP tutorial

WBOY
Release: 2016-07-13 17:31:33
Original
1149 people have browsed it

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template