test_pop3.php(做为现在的主流开发语言)
Test for Manuel Lemoss php(做为现在的主流开发语言) POP3 class
require("pop3.php
(做为现在的主流开发语言)");
$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".
Salin selepas log masuk
";
if(($error=$pop3_connection->Login($user,$password,$apop))=="")
{
echo "
User "$user" logged in.
Salin selepas log masuk
";
if(($error=$pop3_connection->Statistics(&$messages,&$size))=="")
{
echo "
There are <b>$messages</b> messages in the mail box with a total of <b>$size</b> bytes.
Salin selepas log masuk
";
$result=$pop3_connection->ListMessages("",0);
if(GetType($result)=="array")
{
for(Reset($result),$message=0;$message
echo "Message ",Key($result)," - ",$result[Key($result)]," bytes.
Salin selepas log masuk
";
if($messages>0)
{
if(($error=$pop3_connection->RetrieveMessage(1,&$headers,&$body,-1))=="")
{
echo "Message 1:
---Message headers starts below---
Salin selepas log masuk
";
for($line=0;$line echo "",HtmlSpecialChars($headers[$line]),"
Salin selepas log masuk
";
echo "---Message headers ends above---
---Message body starts below---
Salin selepas log masuk
";
for($line=0;$line echo "",HtmlSpecialChars($body[$line]),"
Salin selepas log masuk
";
http://www.bkjia.com/PHPjc/509051.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/509051.htmlTechArticletest_pop3.php (做为现在的主流开发语言) HTML HEAD TITLETest for Manuel Lemoss php (做为现在的主流开发语言) POP3 class/TITLE /HEAD BODY ? require("pop3.php (做为...