
Daniel B - 2008-11-05 00:47:26
Hello,
These are the output error messages I am receiving:
Connecting to pop.gmail.com ...
error connecting to the pop3 server()
error = 13 could not connect to the host "pop.gmail.com" unable to connect to pop.gmail.com:995
With the exception of changing the fsockopen() call, I am using the standard pop3 class you've written.
This used to work, but it recently stopped working.
Here is the script I am using:
<HTML>
<HEAD>
<TITLE>Test for Manuel Lemos's PHP POP3 class</TITLE>
</HEAD>
<BODY>
<?php
require("pop3.php");
/* Uncomment when using SASL authentication mechanisms */
/*
require("sasl.php");
*/
$pop3=new pop3_class;
$pop3->hostname="pop.gmail.com"; /* POP 3 server host name */
$pop3->port=995; /* POP 3 server host port,
usually 110 but some servers use other ports
Gmail uses 995 */
$pop3->tls=1; /* Establish secure connections using TLS */
$user="my_username"; /* Authentication user name */
$password="my_password"; /* Authentication password */
$pop3->realm=""; /* Authentication realm or domain */
$pop3->workstation=""; /* Workstation for NTLM authentication */
$apop=0; /* Use APOP authentication */
$pop3->authentication_mechanism="USER"; /* SASL authentication mechanism */
$pop3->debug=1; /* Output debug information */
$pop3->html_debug=1; /* Debug information is in HTML */
$pop3->join_continuation_header_lines=1; /* Concatenate headers split in multiple lines */
if(($error=$pop3->Open())=="")
{
...
}
if($error!="")
echo "<H2>Error: ",HtmlSpecialChars($error),"</H2>";
?>
</BODY>
</HTML>