Something strange I just found. I kept getting the following error in my logs:
PHP error: imap_open() [<a href='function.imap-open'>function.imap-open</a>]: Couldn't open stream {mailsvr:110/pop3}INBOX
After some research, I noticed that notls wasnt being appended to the /pop3. Even though I have notls selected in the options. I modified your code to force the addition of notls to the pop3 and it works fine now.
//return "{" . $hostname . ":" . $port . "/pop3" . $notls . "}INBOX";
return "{" . $hostname . ":" . $port . "/pop3/notls}INBOX";
|