How do I resolve IMAP connectivity error?

139 Views Asked by At

Can anybody help regarding this issue. The email didn't received through the imap_open function. I have seen a problem with this function.

imap_open($hostname, $username, $password) or die('Cannot connect to Server: ' . imap_last_error());

First url with port

$hostname = '{imap-mail.outlook.com:143/imap}INBOX';

Second URL with port

$hostname = '{imap-mail.outlook.com:993/imap/ssl/novalidate-cert}INBOX';

I want to resolve this problem using imap_open function.

0

There are 0 best solutions below