note 35074 deleted from function.imap-open by cmb
| From: | cmb@php.net | Date: | Sun, 18 Aug 2019 08:37:59 +0000 |
| Subject: | note 35074 deleted from function.imap-open by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-211926@lists.php.net to get a copy of this message | ||
Note Submitter: marshall /at/ sprux net
----
I only run imap on port 993 (ssl only) and I was unable to use imap_open().. couldn't even get
an error out of the script, it just sat there and timed out with no messages in the logs or
anything--the page wouldn't load.
Anyway, this is what finally worked, which I found in the readme for a popular opensource webmail
system:
$i = @imap_open("{localhost:993/ssl/novalidate-cert}INBOX", $user, $pw);
I didn't see the 'ssl' option mentioned anywhere in these comments so maybe this will
help someone out.