Meet Us at Dubai - Gitex Global 2023 For The Exponential Growth Of Your Business!! Schedule a Meeting.

Magento 2 SMTP for Gmail not working

Written by Chirag Parmar

Jun 14, 2022

Magento 2 SMTP for Gmail not working

Google has provided facility to send email from magento 2 SMTP plugins. There are many magento 2 plugins available at free of cost and almost all are working fine. But recently google changed its policy for “Less secure apps & your Google Account” and remove that feature from all gmail account setting on date May 30, 2022. This cause issue while sending email from SMTP using gmail account. You might see this message in your account in “Less secure apps” section in your gmail acccount. This is the root cause which stop email from SMTP extention.

Less Secure AppsTo get rid of SMTP email issue , there is some setting you need to do in your google account. Please follow below step to make smtp working on your account:

1) Enable 2-Step Verification on your Google Account

To confirm 2 factor authentication enabled in your account , simply Click on “Setting” icon from your gmail account and Click on “See all Setting” button.


Then click on “Account and Import” tab and click on “Other Google Account settings” link.
It will open new tab. Then click on “Security” tab from left navigation menu.

Once you have confirmed that 2 factor is enabled under your account, proceed to the next step.

2) Generate App Specific Password.

Once you enabled 2FA then it will show status like below in your screen.
Then click on “App passwords” link. it will redirect you to App password page where you need to create new password fort SMTP connection with your mail account.

CustomAppPasswordsClick on Select App and it shows you dropdown with different option. Select “Other (Custom name)” from option and Enter the name you want to set as App name. Then press Generate. I will generate 16 digit password for you.

Magento 2 SMTP

Use your email id as username and above 16 digit app generated password as password in your SMTP setting and enjoy gmail SMTP service.

Chirag Parmar


We can help you with

  • Dedicated Team
  • Setup Extended Team
  • Product Development
  • Custom App Development

Schedule a Developer Interview And Get 7 Days Risk-Free Trial

Fill out This Form and one of Our Technical Experts will Contact you Within 12 Hours.

    Copyright © 2023 DOLPHIN WEB SOLUTION. All rights reserved.

    TO TOP