imap_open() function getting stuck on unreachable ip address using php-7.4

61 views Asked by At

Below is my code and i m using PHP-7.4.33

$mbox = imap_open ("{10.10.10.1:995/imap/ssl/novalidate-cert}", "user_id", "password",0,0);
print_r($mbox, true)

now wen hit on this code its getting stuck and not returning anything. what can i do in such cases ? how to set timeout ? kindly guide me further...

I have tried below

ini_set('default_socket_timeout', 2); imap_timeout(IMAP_READTIMEOUT,2);

but its not working.

0

There are 0 answers