note 42494 added to function.imap-open

From: Date: Tue, 18 May 2004 20:01:09 +0000
Subject: note 42494 added to function.imap-open
Groups: php.notes 
Request: Send a blank email to php-notes+get-69794@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.imap-open.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+42494 Delete -- http://master.php.net/manage/user-notes.php?action=delete+42494&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+42494&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#69794) next »