Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo "Loading..."."<br />\n";
- $mailuser="info@mailbox.com";
- echo "User=$mailuser"."<br />\n";;
- $mailpass="pass";
- echo "Pass=$mailpass"."<br />\n";
- $mailhost="{mailbox.pop.it:110/pop3}INBOX";
- echo "Host=$mailhost"."<br />\n";
- $mailbox=imap_open($mailhost,$mailuser,$mailpass) or die("<br />\nFAILLED! ".imap_last_error());
- $check = imap_mailboxmsginfo($mailbox);
- var_dump($check);
- /*
- echo "prima del check<br>";
- echo $check->Unread . "<br />" ;
- echo "imap_check() failed: " . imap_last_error() . "<br />\n";
- */
- imap_close($mailbox);
- echo "<br>completed.". "<br />\n";;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement