PHPackages                             swissup/module-email - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. swissup/module-email

ActiveMagento2-module[Mail &amp; Notifications](/categories/mail)

swissup/module-email
====================

Magento2 email providers integration (smtp, mandrill, amazon ses)

0.7.11(5mo ago)1413.6k↓22.5%81OSL-3.0PHP

Since Feb 11Pushed 5mo ago9 watchersCompare

[ Source](https://github.com/swissup/module-email)[ Packagist](https://packagist.org/packages/swissup/module-email)[ RSS](/packages/swissup-module-email/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (12)Versions (62)Used By (1)

Email
=====

[](#email)

Magento2 module for email providers integration.

[![example](https://user-images.githubusercontent.com/412612/40238625-6bdf426c-5abc-11e8-98ca-9b459efa3fa4.png)](https://user-images.githubusercontent.com/412612/40238625-6bdf426c-5abc-11e8-98ca-9b459efa3fa4.png)

Following email services are supported:

- Gmail
- Manual SMTP settings
- Gmail OAuth 2.0
- Sendmail

### Installation

[](#installation)

Run the following commands:

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

### Usage

[](#usage)

1. Navigate to "Marketing → Communications → Email Services" [![example1](https://user-images.githubusercontent.com/412612/40238984-6f0b1262-5abd-11e8-89af-8de7a6a93fa7.png)](https://user-images.githubusercontent.com/412612/40238984-6f0b1262-5abd-11e8-89af-8de7a6a93fa7.png)
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](https://user-images.githubusercontent.com/412612/40238625-6bdf426c-5abc-11e8-98ca-9b459efa3fa4.png)](https://user-images.githubusercontent.com/412612/40238625-6bdf426c-5abc-11e8-98ca-9b459efa3fa4.png)
4. Navigate "Stores → Configurations → Advanced → System → Mail Sending Settings"
5. Select new service in the "Default Transport Email Service" drop-down [![config](https://user-images.githubusercontent.com/412612/40239232-2b0aaf5e-5abe-11e8-94c5-b96862d7ccc9.png)](https://user-images.githubusercontent.com/412612/40239232-2b0aaf5e-5abe-11e8-94c5-b96862d7ccc9.png)
6. Save

#### Gmail Service Setup

[](#gmail-service-setup)

If `Type` selects `Gmail`. Use an [App Password](https://security.google.com/settings/security/apppasswords): Generate a new App Password for your Gmail account. [Sign in with App Passwords](https://support.google.com/accounts/answer/185833)

#### Gmail API with Google OAuth 2.0 Support Service Setup

[](#gmail-api-with-google-oauth-20-support-service-setup)

> - [Beginning September 30, 2024, third-party apps that use only a password to access Google Accounts and Google Sync will no longer be supported.](https://workspaceupdates.googleblog.com/2023/09/winding-down-google-sync-and-less-secure-apps-support.html)
> - [Transition from less secure apps to OAuth](https://support.google.com/a/answer/14114704?hl=en)

If the `Type` field is set to `Gmail OAuth 2.0`, please follow the [Google instructions](https://developers.google.com/identity/openid-connect/openid-connect#registeringyourapp) 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](https://private-user-images.githubusercontent.com/412612/340306060-47802486-2725-4642-91e2-8ff8ead58389.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI2OTc0ODcsIm5iZiI6MTc4MjY5NzE4NywicGF0aCI6Ii80MTI2MTIvMzQwMzA2MDYwLTQ3ODAyNDg2LTI3MjUtNDY0Mi05MWUyLThmZjhlYWQ1ODM4OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD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9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.ut-zoqMNlDs3Sg1w68SuoaCJjj9Hz3b1dgmAZXKfbxk)

###### Customize the User Consent Screen

[](#customize-the-user-consent-screen)

In the `OAuth consent screen`, you need to enable the `Gmail API` scope. [![Add Scope](https://private-user-images.githubusercontent.com/412612/340306062-84204084-a0be-4c54-8e1b-72e8c53c08e8.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI2OTc0ODcsIm5iZiI6MTc4MjY5NzE4NywicGF0aCI6Ii80MTI2MTIvMzQwMzA2MDYyLTg0MjA0MDg0LWEwYmUtNGM1NC04ZTFiLTcyZThjNTNjMDhlOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDYyOVQwMTM5NDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03ZDJmN2IyNDJiOTA4MDE2NzkzODlkZDMxNWFhMzc3MzJhZWRkNjY4ODAyNzcwZjNmOTAyM2U5YzI2NDU1NTI4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.m7RsDRZ61bAc-fwzAd2ki_qSMjYwEPx6Hsjyihwmh5g)](https://private-user-images.githubusercontent.com/412612/340306062-84204084-a0be-4c54-8e1b-72e8c53c08e8.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3ODI2OTc0ODcsIm5iZiI6MTc4MjY5NzE4NywicGF0aCI6Ii80MTI2MTIvMzQwMzA2MDYyLTg0MjA0MDg0LWEwYmUtNGM1NC04ZTFiLTcyZThjNTNjMDhlOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNjI5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDYyOVQwMTM5NDdaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03ZDJmN2IyNDJiOTA4MDE2NzkzODlkZDMxNWFhMzc3MzJhZWRkNjY4ODAyNzcwZjNmOTAyM2U5YzI2NDU1NTI4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZwbmcifQ.m7RsDRZ61bAc-fwzAd2ki_qSMjYwEPx6Hsjyihwmh5g). 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

[](#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](https://akrabat.com/using-mailhog-via-docker-for-testing-email/)

[](#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.

OptionValueTypeSmtpHost0.0.0.0 or mailhogPort1025Auth TypeNoneSecureNone

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance73

Regular maintenance activity

Popularity35

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 72.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~60 days

Recently: every ~23 days

Total

61

Last Release

154d ago

PHP version history (2 changes)0.1.0PHP ~5.5.0|~5.6.0

0.1.1PHP ~5.5.0|~5.6.0|~7.0.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/b5eb663f2c3faab23d84a3ea1e7cbb2ff3afb0e27c10eefd018e48455c997c07?d=identicon)[0m3r](/maintainers/0m3r)

---

Top Contributors

[![0m3r](https://avatars.githubusercontent.com/u/412612?v=4)](https://github.com/0m3r "0m3r (209 commits)")[![ci-swissuplabs](https://avatars.githubusercontent.com/u/40459861?v=4)](https://github.com/ci-swissuplabs "ci-swissuplabs (54 commits)")[![vovayatsyuk](https://avatars.githubusercontent.com/u/306080?v=4)](https://github.com/vovayatsyuk "vovayatsyuk (12 commits)")[![roma84](https://avatars.githubusercontent.com/u/2668851?v=4)](https://github.com/roma84 "roma84 (4 commits)")[![wilfriedwolf](https://avatars.githubusercontent.com/u/23700116?v=4)](https://github.com/wilfriedwolf "wilfriedwolf (3 commits)")[![ryantfowler](https://avatars.githubusercontent.com/u/2093288?v=4)](https://github.com/ryantfowler "ryantfowler (3 commits)")[![gwharton](https://avatars.githubusercontent.com/u/30697781?v=4)](https://github.com/gwharton "gwharton (2 commits)")[![bohdanchumak](https://avatars.githubusercontent.com/u/28531704?v=4)](https://github.com/bohdanchumak "bohdanchumak (1 commits)")[![peterchmeruk](https://avatars.githubusercontent.com/u/6269812?v=4)](https://github.com/peterchmeruk "peterchmeruk (1 commits)")

---

Tags

gmailmagento2magento2-extensionmagento2-smtpmandrillsessmtpemailmandrillsmtpsendmailAmazon SESgmail

### Embed Badge

![Health badge](/badges/swissup-module-email/health.svg)

```
[![Health](https://phpackages.com/badges/swissup-module-email/health.svg)](https://phpackages.com/packages/swissup-module-email)
```

###  Alternatives

[loki/magento2-components

Core module for defining Alpine.js components with advanced AJAX features

1011.8k26](/packages/loki-magento2-components)[mollie/magento2

Mollie Payment Module for Magento 2

1131.9M16](/packages/mollie-magento2)[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50398.5k20](/packages/dotdigital-dotdigital-magento2-extension)[buckaroo/magento2

Buckaroo Magento 2 extension

32420.3k8](/packages/buckaroo-magento2)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

21866.0M1.7k](/packages/drupal-core)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M419](/packages/drupal-core-recommended)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
