📊 State of Magento 2025

The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

613 Modules
401 Ready
211 Need Help
🏆 Leaderboard
Actively Maintained v0.7.11

Module Email

swissup/module-email

Integrates with various email providers like Gmail and Sendmail for Magento 2. Allows configuring email services and setting a default transport for sending emails.

12,396
Downloads
Below average
14
GitHub Stars
Below average
12d ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
224 warnings
PHPStan Failed

Tested on Magento 2.4.8-p3

Recent Test History

Each release is tested against the latest Magento version at that time.

v0.7.11 on Magento 2.4.8-p3
Jan 29, 2026
v0.7.10 on Magento 2.4.8-p3
Jan 15, 2026
v0.7.9 on Magento 2.4.8-p3
Jan 15, 2026
v0.7.8 on Magento 2.4.8-p3
Jan 13, 2026
v0.7.7 on Magento 2.4.8-p3
Dec 27, 2025

Share This Module's Status

Module Email Magento compatibility status badge

README

Loaded from GitHub

Email

Magento2 module for email providers integration.

example

Following email services are supported:

  • Gmail
  • Manual SMTP settings
  • Gmail OAuth 2.0
  • Sendmail

Installation

Run the following commands:

cd <magento_root>
composer require swissup/module-email
bin/magento module:enable Swissup_Email
bin/magento setup:upgrade
bin/magento setup:di:compile

Usage

  1. Navigate to "Marketing → Communications → Email Services" example1
  2. Press "Add New" button
  3. Create service
    • Specify the Name
    • Choose Type from drop-down
    • Fill all required fields
    • Press "Check Service" button and wait for response
    • If everything works fine, press "Save" button example
  4. Navigate "Stores → Configurations → Advanced → System → Mail Sending Settings"
  5. Select new service in the "Default Transport Email Service" drop-down config
  6. Save

Gmail Service Setup

If Type selects Gmail. Use an App Password: Generate a new App Password for your Gmail account. Sign in with App Passwords

Gmail API with Google OAuth 2.0 Support Service Setup

If the Type field is set to Gmail OAuth 2.0, please follow the Google instructions to create the required credentials. In your credentials, you need to add Authorized redirect URIs with at least one URI, such as https://localhost/swissup_oauth2client/google/getToken/ (replace localhost with your Magento store URL). Gmail OAuth2 Credential

Customize the User Consent Screen

In the OAuth consent screen, you need to enable the Gmail API scope. Add Scope. Also, add your Gmail email address as a Test User. After setting up your credentials, enter the following fields:

  • Client ID in User (key)
  • Client secret in Password (secure key)

In the Email (from) field, enter your Gmail email address.

Logging

  1. Navigate "Stores → Configurations → Advanced → System → Mail Sending Settings"
  2. "Logging Enable" set Yes
  3. Navigate to "Marketing → Communications → Email Logs"
Using MailHog via Docker for testing email

I recently needed to modify the emails that a client project sends out. It was set up to send via SMTP and so the easiest way to do this for me was to add a local MailHog instance and point the application at it.

Manually running via Docker The quickest and easiest way to do this is via Docker.

Manually, we can do:

$ docker run -p 8025:8025 -p 1025:1025 mailhog/mailhog

This will run MailHog with the SMTP port exposed on localhost port 1025 and the web interface on 8025.

Now you can configure the app’s SMTP config and away you go.

Option | Value ----------|------- Type | Smtp Host | 0.0.0.0 or mailhog Port | 1025 Auth Type | None Secure | None

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.