Why imap_open gives the error “SSL negotiation failed” when connecting without SSL

123 views Asked by At

I am trying to connect to imap server using imap_open() php function wihtout SSL, but I got error "SSL negotiation failed" What could be the reason?

I run

imap_open("{myhost.com:143/imap}INBOX", "mylogin", "mypassword", 0, 0, ['DISABLE_AUTHENTICATOR' => ['GSSAPI', 'NTLM']]);
$err = imap_last_error();

As a result connection is failed and error is "TLS/SSL failure for myhost.com: SSL negotiation failed"

0

There are 0 answers