PHP Classes

Returning timed out error mesage for gmail configuration

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  Returning timed out error mesage for...  >  (Un) Subscribe thread alerts  
Subject:Returning timed out error mesage for...
Summary:Returning timed out error mesage for gmail configuration
Messages:1
Author:lineshjose
Date:2011-02-04 21:14:47
 

  1. Returning timed out error mesage for...   Reply   Report abuse  
Picture of lineshjose lineshjose - 2011-02-04 21:14:47
hi

I'm new to php. I configured gmail authentication like this

$smtp->host_name="smtp.gmail.com";
$smtp->host_port=465;
$smtp->ssl= 465;
$smtp->http_proxy_host_name='';
$smtp->http_proxy_host_port=3128;
$smtp->socks_host_name = '';
$smtp->socks_host_port = 1080;
$smtp->socks_version = '5';

$smtp->start_tls=587;
$smtp->localhost="localhost";
$smtp->direct_delivery=0;
$smtp->timeout=10;
$smtp->data_timeout=0;

$smtp->debug=1;
$smtp->html_debug=1;
$smtp->pop3_auth_host="";
$smtp->realm="";
$smtp->user="my_user_name@gmail.com";
$smtp->password="my_password";
$smtp->workstation="";
$smtp->authentication_mechanism="LOGIN";

but it returned this error message

Resolving SMTP server domain "smtp.gmail.com"...
Connecting to host address "74.125.93.109" port 465...
Could not send the message to "my_user_name@yahoo.com". Error: could not connect to the host "smtp.gmail.com": Connection timed out.


Please help me to configure the gmail settings..