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
IMAP Open Error Heartache
Moderator: General Moderators
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?Weirdan wrote:tryCode: Select all
$MAILSERVER="{" . "$IP:110/pop3/notls" . "}INBOX";
Thanks.