<?php
$mailbox="{localhost:110/pop3}INBOX";
$user="user01";
$pass="pass01";
$mbox = imap_open( $mailbox, $user ,$pass) or die("接続エラー\n");
// メールボックスの詳細情報をチェック。
$obj=imap_mailboxmsginfo($mbox);
echo $obj->Date , "\n";
echo $obj->Driver , "\n";
echo $obj->Mailbox , "\n";
echo $obj->Nmsgs , "\n";
echo $obj->Recent , "\n";
echo $obj->Unread , "\n";
echo $obj->Deleted , "\n";
echo $obj->Size , "\n";
map_close($mbox);
?> |