Advertisement
Guest User

Untitled

a guest
May 30th, 2018
397
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. <?php
  2.  
  3. $host = "imap.gmail.com";
  4. $ssl = true;
  5. $port = 993;
  6. $folder = "Caixa de entrada";
  7. $user = "";
  8. $pass = "";
  9.  
  10. $ssl= ($ssl == false) ? "/novalidate-cert" : "";
  11.  
  12. $connection = imap_open("{"."$host:$port/pop3$ssl"."}$folder",$user,$pass);
  13.  
  14. $check = imap_mailboxmsginfo($connection);
  15.  
  16. var_dump((array)$check);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement