Recently, Google stop supporting less secure apps. That’s why Gmail SMTP not working.
In this short article to know how to fix Gmail SMTP not working issue 2022?
Using Gmail SMTP, You can send emails using third-party email clients like Thunderbird and Outlook. Many websites use PHP to send email via SMTP. Now, google no longer supports the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password. In order to use Gmail SMTP, there is required to configure it to solve gmail SMTP not working issue 2022. Follow the below steps to configure it.
How to Configure Gmail SMTP?
Follow the below steps for Gmail SMTP configuration.
Login to Gmail and click on the user icon on the top right corner and select “Manage your Google Account”.
Click on security from the left menu.
Turn ON 2-Step verification.
Click on “App passwords” – You need to login again with your Gmail account password
In the Select app dropdown select “Mail”, Select device dropdown select “Other” and give your application name. You can see in below screenshot.
Click on the “Generate” button.
Now it will display 16 character password. copy this password and keep it safe. As afterward, you will not be able to see it. You can see it below the screenshot.
PHP mailer Gmail SMTP configuration
You have done Gmail SMTP settings. Now, You have App Name and Password. You can edit phpmailer configuration file as per below.
I hope it helped you. Please let us know in the comment section if you have any concerns.
Thanks for your time, to know about me.
Hello I Am Vijay Poshiya. 🙂
Here’s My little description of your attention on Me and My blog. I am here to help you with PHP programming. I can give you a cake walkthrough platform where a complex program can make it easier for you. I will also provide you with the rare collections of task sets over the internet.
I hope you will find your solutions in better understanding shape within my blog.
You can read more about PHPAdvices at the “About” page.