Can not send mail by smtp to gmail

Operating System & Version
CentOS v7.9.2009 STANDARD kvm
cPanel & WHM Version
106.0.9

Ex2000

Registered
Nov 10, 2022
2
0
1
usa
cPanel Access Level
Website Owner
Hello I have SMTP from my server (cpanel).
I send an email form using php But only emails from my own domain are sent [email protected], [email protected]
And it is not sent for email from Gmail or...
I have access to cpanel or whm
for form I use : GitHub - Ipatov/SendMailSmtpClass: SendMailSmtpClass.php


$mailSMTP = new SendMailSmtpClass('[email protected]', 'xxxx', 'ssl://mail.xxx.com', 465, "UTF-8");
Emails used to be sent, but now they can't .
I use PHPmailer but I did not get an answer.
 
Last edited by a moderator:

Ex2000

Registered
Nov 10, 2022
2
0
1
usa
cPanel Access Level
Website Owner
Hey there! Do you get any type of bounceback message when sending that email to Gmail? Does a normal email, such as one sent from Webmail through a cPanel account, get through to Gmail normally?
No don't bounceback message

in webmail I can sent mail to gmail