- 
 
 
 

  ³  

   
Joe
?

PHP

$mbox = imap_open("{imap.gmail.com:993/imap/ssl}INBOX""","")        or die("can't connect: " . imap_last_error());

$mc = imap_check($mbox);
print('<pre>');
print_r($mc);
print('</pre>');
print('<hr />');
$check = imap_mailboxmsginfo($mbox);

if ($check) {
    echo "Date: "     . $check->Date    . "<br />\n" ;
    echo "Driver: "   . $check->Driver  . "<br />\n" ;
    echo "Mailbox: "  . $check->Mailbox . "<br />\n" ;
    echo "Messages: " . $check->Nmsgs   . "<br />\n" ;
    echo "Recent: "   . $check->Recent  . "<br />\n" ;
    echo "Unread: "   . $check->Unread  . "<br />\n" ;
    echo "Deleted: "  . $check->Deleted . "<br />\n" ;
    echo "Size: "     . $check->Size    . "<br />\n" ;
} else {
    echo "imap_check() failed: " . imap_last_error() . "<br />\n";
}
 $result = imap_fetch_overview($mbox,"1:{$mc->Nmsgs}",0);
print('<pre>');
 print_r($result);
print('</pre>');
imap_close($mbox);
 
dz
ϳ google mail php-.


  ':
  :
-Ѳ  Ѳ- . ³
-Ѳ Ѳ- . ³

APServer | SiMan CMS | ˳ | | | | ˳ | PHP Builder | Download | | Smarty | ϳ PHP | / | |