Advertisement
Guest User

Untitled

a guest
Jun 9th, 2017
507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.60 KB | None | 0 0
  1. <?php
  2. echo "Loading..."."<br />\n";
  3.  $mailuser="info@mailbox.com";
  4.  
  5. echo "User=$mailuser"."<br />\n";;
  6.  $mailpass="pass";
  7. echo "Pass=$mailpass"."<br />\n";
  8. $mailhost="{mailbox.pop.it:110/pop3}INBOX";
  9.  
  10. echo "Host=$mailhost"."<br />\n";
  11.  
  12.  $mailbox=imap_open($mailhost,$mailuser,$mailpass) or die("<br />\nFAILLED! ".imap_last_error());
  13.  $check = imap_mailboxmsginfo($mailbox);
  14. var_dump($check);
  15. /*
  16. echo "prima del check<br>";
  17. echo $check->Unread  . "<br />" ;    
  18. echo "imap_check() failed: " . imap_last_error() . "<br />\n";
  19.  
  20. */
  21.  imap_close($mailbox);
  22.  
  23. echo "<br>completed.". "<br />\n";;
  24. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement