Page 1 of 1

IMAP Open Error Heartache

Posted: Wed Dec 17, 2003 11:28 am
by costas
When I execute the following to open a POP server I get an error.

$IP=gethostbyname("pop.mailserver.com");
$MAILSERVER="{" . "$IP:110/pop3" . "}INBOX";
$user="john@mydomain.com";
$pass="secret";
$mbox = @imap_open($MAILSERVER,$user,$pass);

---- Error message
Debug session started.
Debug Warning: /root/parsembox.php line 6 - Couldn't open stream {nnn.nnn.nnn.nnn:110/pop3}INBOX
----------------------------------

I am using RH9 and PHP 4.3. I tried different options like /nolst.

This server works using "telnet pop.mailserver.com 110" and entering user and pass.

Any ideas?

Thanks

Posted: Wed Dec 17, 2003 11:54 am
by Weirdan
try

Code: Select all

$MAILSERVER="{" . "$IP:110/pop3/notls" . "}INBOX";

Posted: Thu Dec 18, 2003 7:04 am
by costas
Weirdan wrote:try

Code: Select all

$MAILSERVER="{" . "$IP:110/pop3/notls" . "}INBOX";
I cut and pasted your line. No luck, same error message. If I do this using sockets() it works. Any settings I should be checking?

Thanks.