PHP Classes

Error: 111 could not connect

Recommend this page to a friend!

      POP3 e-mail client  >  All threads  >  Error: 111 could not connect  >  (Un) Subscribe thread alerts  
Subject:Error: 111 could not connect
Summary:to the host "pop.gmail.com": Connection refused
Messages:3
Author:Fernando
Date:2009-11-15 22:40:46
Update:2009-11-17 13:20:46
 

  1. Error: 111 could not connect   Reply   Report abuse  
Picture of Fernando Fernando - 2009-11-15 22:40:47
Hi, first thanks for the time.

Im getting this error:

Error: 111 could not connect to the host "pop.gmail.com": Connection refused

Im trying this on a server provided by Hostgator.com . I just asked them if they are blocking port 995 (as i saw in another thread here). But, im posting this if its not. Here are my variables for the test class.

$pop3=new pop3_class;
$pop3->hostname="pop.gmail.com";
$pop3->port=995;
$pop3->tls=1;
$user="USER@gmail.com";
$password="USERPASS";
$pop3->realm="";
$pop3->workstation="";
$apop=0;
$pop3->authentication_mechanism="USER";
$pop3->debug=1;
$pop3->html_debug=1;
$pop3->join_continuation_header_lines=1;

Thanks in advance.

  2. Re: Error: 111 could not connect   Reply   Report abuse  
Picture of Manuel Lemos Manuel Lemos - 2009-11-15 23:30:59 - In reply to message 1 from Fernando
Refused connections can either mean you are using the wrong port or server address, or there is some firewall blocking the connections.

The server address and port are correct. So I am afraid your hosting company is blocking outgoing 995 port.

  3. Re: Error: 111 could not connect   Reply   Report abuse  
Picture of Fernando Fernando - 2009-11-17 13:20:46 - In reply to message 2 from Manuel Lemos
Yes, they just opened port 995 at Hostgator.com . Thanks anyways.