PHP Imap function problems

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Inkyskin
Forum Contributor
Posts: 282
Joined: Mon Nov 19, 2007 10:15 am
Location: UK

PHP Imap function problems

Post 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)
User avatar
Inkyskin
Forum Contributor
Posts: 282
Joined: Mon Nov 19, 2007 10:15 am
Location: UK

Post 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!
Post Reply