PHP Classes

Impossible to connect to smtp.gmail.com

Recommend this page to a friend!

      SMTP E-mail sending class  >  All threads  >  Impossible to connect to smtp.gmail.com  >  (Un) Subscribe thread alerts  
Subject:Impossible to connect to smtp.gmail.com
Summary:Impossible to connect to smtp.gmail.com but no error message to
Messages:1
Author:Laetitia GERARD
Date:2022-06-29 13:53:14
 

  1. Impossible to connect to smtp.gmail.com   Reply   Report abuse  
Picture of Laetitia GERARD Laetitia GERARD - 2022-06-29 13:53:14
Hello
I used your example and I can't connect to my google smtp, and no error is written it is empty

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

$smtp->start_tls=0;
$smtp->cryptographic_method = STREAM_CRYPTO_METHOD_TLS_CLIENT;
$smtp->localhost="localhost";
$smtp->direct_delivery=0;
$smtp->timeout=10;
$smtp->data_timeout=0;
$smtp->debug=1;
$smtp->html_debug=0;
$smtp->pop3_auth_host="";
$smtp->user="myuser";
$smtp->realm="";
$smtp->password="mypassword";
$smtp->workstation="";
$smtp->authentication_mechanism="";

I also tried with start_tls but nothing better, changed the port too...nothing is working
have you an idea about my error?
thanks