Guest User

Untitled

a guest
Aug 10th, 2018
465
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. IMAP: Getting emails from gmail
  2. $server = '{imap.gmail.com:993/ssl}';
  3. $user = 'myUser';
  4. $password = 'myPassword';
  5. $connection = imap_open($server, $user, $password);
  6. $count = imap_num_msg($connection);
  7. echo $count;
  8.  
  9. $server = '{imap.gmail.com:993/ssl}[Gmail]/All Mail';
Add Comment
Please, Sign In to add comment