Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IMAP: Getting emails from gmail
- $server = '{imap.gmail.com:993/ssl}';
- $user = 'myUser';
- $password = 'myPassword';
- $connection = imap_open($server, $user, $password);
- $count = imap_num_msg($connection);
- echo $count;
- $server = '{imap.gmail.com:993/ssl}[Gmail]/All Mail';
Add Comment
Please, Sign In to add comment