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.

GmailQuickSetting

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

Google2fa
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.
AppSecurityPassword
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.

Magento 2 SMTP for Gmail not workingClick 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

Author

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.

    Google
    |

    4.8

    Google
    |

    4.8

    Google
    |

    4.9

    Google
    |

    4.8

    Google
    |

    4.9

    Copyright © 2024 DOLPHIN WEB SOLUTION. All rights reserved.

    TO TOP