php – $imapPath = ‘{}INBOX’; and getting error like: Can’t connect to,995: Network is unreachable


I have gmail connection issue using below code :

$password = ‘password;

// try to connect
$inbox = imap_open($imapPath,$username,$password) or die(‘Cannot connect to Gmail: ‘ . imap_last_error());

Getting Error like below:

Cannot connect to Gmail: Can’t connect to,993: Network is unreachable

Tried below options :

  1. I’ve allowed access for less secure apps on the Gmail account
  2. Tried
  3. Not enabled firewall on server so firewall issue not exists
  4. Enabled imap and pop from gmail setting
Heena 1 year 2021-09-13T01:43:09-05:00 0 Answers 0 views 0

Leave an answer