note 42494 deleted from function.imap-open by didou

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.