I need some help with the following problem:

This is the source code:



//Retreiving mail messages from mail server
$server = 'localhost';
$port = 110;
$mail = imap_open("\{$server:$port/pop3}INBOX", 'admin', 'password');


This is the error message (exception):
Warning: imap_open() [function.imap-open]: Couldn't open stream \{localhost:110/pop3}INBOX in C:\Program Files\xampp\htdocs\MailWebApp\index.php on line 34

What I do know:

  1. PHP is working
  2. Port 25 is working (tested it with telnet localhost 25)
  3. Port 110 is not working. It was tested with telnet localhost 110 in the Command Prompt and the following error message was reported:

-ERR Your connection is temporarily blacklisted - try again later
Connection to host lost.

Anyone knows what this error message means?


Ok. Very strange error message.

I waited a while and tried to connect using telnet localhost 110 again and for some reason it connected.

Not sure why this happened, maybe the server was busy with the port while I was trying to connect to the port.

... :?:

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.