Magento 2 SMTP Extension - Gmail, Amazon SES, Office360, Mailgun, SendGrid, Mandrill and more.

Total Downloads Latest Stable Version GitHub stars GitHub forks donate

Configure Magento 2 to send all transactional email using Google App, Gmail, Amazon Simple Email Service (SES), Microsoft Office365 or other SMTP server.

Magento SMTP Email Extension

All you need is either a (i) free Gmail account, (ii) paid Google Apps account or any other SMTP service (i.e Amazon Simple Email Service / Amazon SES, Microsoft Office365 )


Since Google's SMTP server does not use Port 25, you'll reduce the probability that an ISP might block your email or flag it as SPAM. Also all your emails sent from Magento will be searchable and backed-up in your email account on Google's servers.


  • Send email through virtually any external SMTP server from your Magento store
  • Easily configure Magento 2 SMTP settings from within Magento2 store admin
  • Complete control of custom SMTP server settings: Hostname, Port, Username, Password, ...
  • Self test option, which lets you verify your email credentials are correct before saving
  • Support Multi-store, configurable different email providers/accounts per store
  • Support secure SMTP servers: TLS / SSL, Plain-text, username/password, CRAM-MD5 authentication
  • Customize email headers: From / Reply-To / Return-Path
  • Disable/enable module from admin
  • Developer Friendly

SMTP Service Providers

  • Gmail
  • Google App
  • Amazon Simple Email Service (SES)
  • Microsoft Office365
  • Outlook
  • SparkPost
  • Mandrill
  • MailGun
  • SendGrid
  • Elastic Email
  • Hotmail
  • AOL Mail
  • Yahoo Mail
  • AT&T
  • Verizon
  • Postmark
  • O2 Mail
  • Zoho
  • Mailjet
  • Your Company SMTP Server
  • and many other SMTP servers


Step 1

Using Composer (recommended)
composer require magepal/magento2-gmailsmtpapp
Manual Installation (not recommended)

Install Gmail Smtp App for Magento2

  • Download the extension
  • Unzip the file
  • Create a folder {Magento root}/app/code/MagePal/GmailSmtpApp
  • Copy the content from the unzip folder
  • Flush cache

Step 2 - Enable Gmail Smtp App

 php -f bin/magento module:enable --clear-static-content MagePal_GmailSmtpApp
 php -f bin/magento setup:upgrade
 php -f bin/magento setup:static-content:deploy
 php -f bin/magento cache:flush

Step 3 - Config Gmail Smtp App

Log into your Magento Admin, then goto Stores -> Configuration -> Advanced -> System -> SMTP Configuration and enter your email credentials


Want to contribute to this extension? The quickest way is to open a pull request on GitHub.


If you encounter any problems or bugs, please open an issue on GitHub.

Need help setting up or want to customize this extension to meet your business needs? Please email and if we like your idea we will add this feature for free or at a discounted rate.

© MagePal LLC. |