GOSTRA_FX

PHP IMAP GMail

Feb 2nd, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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());
Add Comment
Please, Sign In to add comment