Test_pop3.php (as the current mainstream development language)
<title>Test for Manuel Lemoss PHP (as the current mainstream development language) POP3 class</title>
Require ("pop3.php (as current mainstream development language)");
$user = "User";
$password = "passwd";
$apop = 0;
$pop 3_connection=new Pop3_class;
$pop 3_connection->hostname= "mail.xiaocui.com";
if ($error = $pop 3_connection->open ()) = = "")
{
echo "
Connected to the POP3 server "$pop 3_connection->hostname".
";
if ($error = $pop 3_connection->login ($user, $password, $apop)) = = "")
{
echo "
User "$user" logged in.
";
if ($error = $pop 3_connection->statistics (& $messages,& $size) = = "")
{
echo "
$messages $size bytes.
";
$result = $pop 3_connection->listmessages ("", 0);
if (GetType ($result) = = = "Array")
{
For (Reset ($result), $message =0; $message echo "
Message ", Key ($result),"-", $result [Key ($result)]," bytes.
";
if ($messages >0)
{
if ($error = $pop 3_connection->retrievemessage (1,& $headers,& $body,-1)) = = "")
{
echo "
Message 1:---Message headers starts below---
";
for ($line =0; $line Echo "
", Htmlspecialchars ($headers [$line]), "
";
Echo
---Message headers ends above------message body starts below---
";
for ($line =0; $line Echo "
", Htmlspecialchars ($body [$line]), "
";
http://www.bkjia.com/phpjc/509051.html www.bkjia.com true http://www.bkjia.com/phpjc/509051.html techarticle test_pop3.php (as the current mainstream development language) HTML HEAD titletest for Manuel lemoss PHP ( As the current mainstream development language) POP3 Class/title/head BODY? Require ("pop3.php" as ...