The actual error message is:
Zend_Mail_Protocol_Exception with message 'cannot connect to host; error = Connection Timed Out (errno = 110)'
The Imap connection config is like:
- Code: Select all
array(
'host'=>'imap(dot)gmail(dot)com',
'port'=>'993',
'ssl'=>true,
'user'=>'myuser',
'password'=>'mypassword'
);
Apparently, the issue might be of fsockopen(). But, the corresponding values in PHP.ini are:
- Code: Select all
allow_url_fopen = on
default_socket_timeout = 600 (on production) and 60 (on development)
I did find out, that inside the /library/Zend/Mail/Protocol/Imap.php, the timeout is mentioned as "const TIMEOUT_CONNECTION = 30". Should I increase this ? Though, the script works on development, even when I set this value to 1.

