Ah, very nice.
Ok, this provides some more clues.
With your default script setting...
Code:
$server = '{imap.gmail.com:993/ssl}INBOX'; I also tried
Code:
$server = '{imap.gmail.com:993/imap/ssl}INBOX'; both of those gave me this error
Code:
Could not connect: Certificate failure for imap.gmail.com: unable to get local issuer certificate: /C=US/O=Google Inc/CN=Google Internet Authority
But then I googled around a bit for answers and I changed the server line to:
Code:
$server = '{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX'; and that worked. The script displayed the number of messages in my inbox.
So, I'm going to keep looking into the problem with the certificate validation failure.
I assume it's some sort of missing PHP module? I just checked phpinfo() and I see openSSL module installed.
Thank you for your help!
Bookmarks