Advertisement
rgman

PHP IMAP GMail

Jul 29th, 2016
490
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.20 KB | None | 0 0
  1. <?php
  2.  
  3. $host = '{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX';
  4. $user = '***';
  5. $pass = '***';
  6. $inbox = imap_open($host, $user, $pass) or die('Could not connect to Gmail: ' . imap_last_error());
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement