PHP imap_open() error – INBOX: invalid remote specification (errflg=2)

INBOX: invalid remote specification (errflg=2)

 

Got following error when use imap_open() in PHP?

 

 

Check imap enabled SSL support like screenshot

screen-shot-2016-10-31-at-2-08-08-am

 

If cannot see SSL Support configuration, then need re-compile imap.so with enabling SSL support.

 

 

PHP IMAP connection test code