Advertisement
asanchez75

php/imap

Sep 20th, 2015
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. <?php
  2.  
  3. $mbox = imap_open("{imap.gmail.com:993/ssl/novalidate-cert}INBOX", "[email protected]", "password");
  4.  
  5. $old_msg_numbers = imap_search($mbox, "");
  6.  
  7. echo "This should report the message numbers retrieved from GMail\r\n";
  8. var_dump($old_msg_numbers);
  9. echo "\r\nimap_errors:\r\n";
  10. var_dump(imap_errors());
  11. echo "\r\nimap_alerts:\r\n";
  12. var_dump(imap_alerts());
  13.  
  14. imap_close($mbox);
  15.  
  16. phpinfo();
  17.  
  18. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement