Problem with receiving PHP IMAP mail rambler.ru

Good afternoon,

Connected IMAP DLL to PHP 5.4.31(XAMPP, win XP), phpinfo> imap IMAP c-Client Version 2007e SSL Support enabled

I wrote a simple code:

/*
Сервер: imap.rambler.ru
Шифрование: SSL (порт 993) или STARTTLS (порт 143)
*/
$user  = '[email protected]';
$pass = 'xxxxxx';
$connect = imap_open('{imap.rambler.ru:993}INBOX',$user, $pass);
if ($connect) {echo 'Successful';} else {echo 'Failed';}

Result:

Warning: imap_open(): Couldn't open stream {imap.rambler.ru:993}INBOX in D:\Programs\Xampp\htdocs\post\posts.php on line 8

Fatal error: Maximum execution time of 60 seconds exceeded in D:\Programs\Xampp\htdocs\post\posts.php on line 8

Notice: Unknown: [CLOSED] IMAP connection broken (server response) (errflg=2) in Unknown on line 0

T, e, the code hangs, after 60 seconds PHP turns off, access to mail programs in the ramblera account is enabled, through the site I enter\exit instantly.

What could be the problem ?

If I specify a non-existent server, it clearly outputs: Host not found (#11001)

 0
Author: Dennis, 2016-03-02

1 answers

Try imap_open('{imap.rambler.ru:993/imap/ssl}INBOX',$user, $pass} by analogy with Google. I don't have an account on rambler, but I get the error "Incorrect username/password" instead of waiting for an endless connection.

 0
Author: Мелкий, 2016-03-02 11:59:34