Quantcast
Channel: IMAP: Getting emails from gmail - Stack Overflow
Viewing all articles
Browse latest Browse all 3

IMAP: Getting emails from gmail

$
0
0

I want to get emails from gmail, but I want to get the folder 'All Mail'

I have the following:

$server = '{imap.gmail.com:993/ssl}';$user = 'myUser';$password = 'myPassword';$connection = imap_open($server, $user, $password);$count = imap_num_msg($connection);echo $count;

The echo however is echoing the emails in the inbox only, how can I make it read a certain folder, or all the folders?

Thank you!


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>