note 42494 deleted from function.imap-open by didou

From: Date: Sat, 29 Dec 2007 21:03:20 +0000
Subject: note 42494 deleted from function.imap-open by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-134233@lists.php.net to get a copy of this message
Note Submitter: greenie at oddpost dot com ---- I was trying to use the example code above to connect to a POP mailbox, but no matter how I arranged the elements of the mailbox name, the script hung on the imap_open() command, and never came back. No error message, no timeout - the browser just spins. Strangely, the same syntax worked just fine for a local mailbox. I did some Googling, and it looks like many others are having the same problem. Finally, I got it to work using the following syntax: $mbox = imap_open( "{yourmailserver.com/pop3:110/notls}INBOX", "username", "password" ); Note that the port information comes AFTER the "/pop3" bit, which is contrary to the examples given above. I have no idea if this is correct or not, but it works for me :) FWIW, I'm using PHP 4.1.2. Also - others here have suggested using the "/notls" part, but haven't explained what it does: it explicitly requests a non-SSL connection.

« previous php.notes (#134233) next »