Page 1 of 1

PHP Imap function problems

Posted: Mon Dec 31, 2007 2:31 pm
by Inkyskin
Hi all,

I have bene adding imap reading functionality to a control panel I am building. 66% of the time it connects fine, but the other 33% of the time it times out and I get this error:
Array ( [0] => Connection failed to janky.mail.dreamhost.com,143: Connection reset by peer )
Would this be a email server issue, or is there a better way to connect?

Heres the connection string I am using:

Code: Select all

$mbox = imap_open("{janky.mail.dreamhost.com:143/novalidate-cert/notls}INBOX", "email_address", "password");
(My email client never has an issue connecting to the server - only a problem with php)

Posted: Mon Dec 31, 2007 7:13 pm
by Inkyskin
I tried with gmail and that worked fine - so I guess it really is a problem with the email server, so scratch what I said before!