Push the limits of your Adobe Commerce store with MagePal Extension

Take your Adobe Commerce store to new heights with the power of MagePal extensions. Our expertly crafted code and rigorous testing ensure seamless integration with Adobe Commerce, giving you the freedom to focus on growing your business, not debugging. Upgrade your store's potential with MagePal.

How to configure Gmail to send with Magento 2

NOTE - Gmail Account To help keep your account secure, starting May 30, 2022, Google will no longer support the use of third-party apps or devices which ask you to sign in to your Google Account using only your username and password.

Please note this deadline does not apply to Google Workspace or Google Cloud Identity customers. The enforcement date for these customers will be announced on the Workspace blog at a later date.

For more information, please continue reading.

Special Note on Apple Device Sign-Ins. Users who have not recently signed into their Google Account using only username and password will be able to only make new sign in attempts using the Google account type starting from February 28, 2022. Existing users may continue to sign into their Google Account using their username and password until May 30, 2022.

Enable less secure apps to access accounts

Google Tag Manager

  1. using a noreply@companyName or web@companyName email address.
  2. Go to your Google Account.
  3. On the left navigation panel, click Security.
  4. On the bottom of the page, in the Less secure app access panel, click Turn on access.

Gmail SMTP Magento 2

Log into your Magento Store and add the configuration

  1. Connect to smtp.gmail.com on port 465, if you’re using SSL. (Connect on port 587 if you’re using TLS.)
  2. Sign in with a Google username and password for authentication to connect with SSL or TLS.
  3. Ensure that the username you use has cleared the CAPTCHA word verification test that appears when you first sign in.
  • smtp-relay.gmail.com
    • Options: Port 25, 465, or 587
    • Secure Socket Layer (SSL)/Transport Layer Security (TLS) protocols.
    • Dynamic IPs are allowed, but a static IP might be required due to authentication requirements.
  • smtp.gmail.com
    • Port 465 (SSL required)
    • Port 587 (TLS required)
    • Dynamic IPs allowed
  • aspmx.l.google.com
    • Port 25
    • Dynamic IPs allowed
    • Mail can only be sent to Gmail or G Suite users.
Gmail, OAuth2 and “Allow less secure apps”

As of December 2014, in order to better secure customer’s email account Google has implemented new authentication mechanism called XOAUTH2 based on OAuth2 specification for access to their various services, including Gmail. This change can break both SMTP and IMAP access to Gmail or G-suite, and you may receive various authentication failures (“5.7.14 Please log in via your web browser and then try again” or “Username and Password not accepted”) while testing your configuration from our extension. Included in the error message is a link to https://support.google.com/mail/bin/answer.py?answer=78754, which provide a list of possible causes, or https://support.google.com/mail/?p=BadCredentials, which for the most part does not provide enough information. Currently our smtp extension does not support OAuth2 which would take a lot more time to setup.

0

Total Downloads

11

years experience with Magento

30+

Magento / Adobe Commerce Extensions

Shop with confidence

With millions of downloads worldwide, install with confidence knowing that our extensions will just work.

Learn More About MagePal Extension

Is your Magento store ready for the future? Say hello to the new Google Analytics 4, which is built from the ground up with all-new features and advanced machine learning technology.

GA4 Extension

Related

Related Extensions

Unlock the full potential of your Magento 2 store with MagePal extensions

Order Shipment Tracking

Providing your customer with a beautiful and functional order package tracking without leaving your site.

Enhanced Transactional Emails

Get more from your order confirmation emails by promoting other complementary products.

DataLayer for Tag Manager

Whether you are integrating Bing, Facebook, SnapChat, Pinterest, or any other services our extension make it easy.