Configuring SMTP Gmail to help you send emails is not rejected or in the spam box, increasing the ability to send emails successfully and into the right mailbox of the customer. In this article, I will guide you how to configure SMTP for Gmail in Magento 2.
Step 1: Gmail account settings
Sign into Gmail, in the right corner of the screen, click See all settings.
The settings page appears, select Forwarding and POP/IMAP, enable POP and IMAP then save.
Go to Manage your Google Account -> Security -> Less secure app access -> Turn on access.
Next, turn on Allow less secure apps.
Step 2: Configuration in the SMTP extension
After installing the SMTP extension, log in to the admin page and select the SMTP icon -> SMTP Configurations.
You install the following:
- Enable Magetop SMTP: Yes.
- Host: Click Load Settings will display a table you select Gmail and load settings to be automatically adjusted Port, Protocol accordingly.
- Authentication: LOGIN.
- Username and Password: The Gmail password account that you set up in step 1.
Then, scroll down to the Send Test Email section to try sending a mail to another email address. Enter another Gmail address in the Send To field, then click Test Now.
If at this step you encounter the error 5.7.14 5.7.14 please log in via your web browser and then try again. 5.7.14 learn more at 5.7.14 https://support.google.com/mail/answer/78754 w2sm270392pfc.194 – gsmtp, then you need to check the Less secure app access section and change the password then enter Password changed again.
After sending successfully, please check the email of the other account to check if the email has been sent.
Email was successfully sent to the correct mailbox. So I have finished instructions on how to configure SMTP Gmail in Magento 2.
Thank you for reading.