Zend Framework - Not Connecting to IMAP mail server - instead dumps empty php file <p>Hi guys I'm trying to connect to an imap mail server using zend frameworks Zend_Mail_Storage_Imap function. Its working with some accounts but with most accounts it just dies out. I'm connecting using:</p> <pre><code>$mail = new Zend_Mail_Storage_Imap(array('host' =&gt;$current_dept-&gt;incoming_server, 'ssl' =&gt;$current_dept-&gt;ssl, 'port'=&gt;$current_dept-&gt;incoming_port, 'folder'=&gt;$mbox_name, 'user' =&gt;$current_dept-&gt;email, 'password' =&gt;$current_dept-&gt;email_psd)); </code></pre> <p>WIth some email accounts teh code doesn't go past this statement - and instead I'm prompted to 'download' the php file being run. Whats happening here - the mail server details are correct.</p>