php smtp gmail connection

Sentrifugo 3.2 Failed To Connect Gmail Account SMTP Issue

When you’re trying to set the email settings in Sentrifugo set up with Gmail account, you might be facing the authentication issue. we are getting phpmailer SMTP connection error issue with the Gmail account in Sentrifugo. You will see Sentrifugo 3.2 failed to make a connection using PHP SMTP Gmail.

sentrifugo 3.2 failed

Check Out: How To Recover lost Data Using Testdisk On Linux

Troubleshooting Steps:

Step 1: you can check the DNS connection using the below command.

dig +short smtp.gmail.com

if you find the output like gmail-smtp-msa.l.google.com, it means DNS is working fine.

Step 2: Test the connectivity with the ping command.

ping smtp.gmail.com

Try to telnet to Gmail mail server with telnet smtp.gmail.com 587. if you see output like connected to gmail-smtp-msa.l.google.com, means you’re able to do that. You can also try with 465 or 25 port.

Check Out: How To Apply SSL Certificate On Load Balancer On Amazon Cloud

Step 3: if you use a secure transport layer is tls, you have to use 587 port.

if you use a secure transport layer that is SSL, you have to use 465 port.

The Solution with Gmail account:

This is because you have to turn it “on” the secure app access in google account settings, if we don’t do that, you won’t be able to set up the mail server settings with Gmail account on Sentrifugo.

1. Open your google admin console.

admin.google.com

2. Click on Security → Basic Settings

Check Out: How To Install and Configure Node Exporter Prometheus

3. Under less secure apps, select go to settings for less secure apps.

4. In the subwindow, you will see these options then save the settings.

phpmailer smtp issue

You will be able to make a connection with the Gmail SMTP server.

You’re done php smtp gmail connection phpmailer smtp issue error sentrifugo phpmailer 

Rate this article

Leave a Reply

avatar
  Subscribe  
Notify of