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(3mo ago)1412.8k↓54.2%91OSL-3.0PHP

Since Feb 11Pushed 3mo 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 1mo ago

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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQzOTk1NTksIm5iZiI6MTc3NDM5OTI1OSwicGF0aCI6Ii80MTI2MTIvMzQwMzA2MDYwLTQ3ODAyNDg2LTI3MjUtNDY0Mi05MWUyLThmZjhlYWQ1ODM4OS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlh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JjqK9tWVJvJ-EfR8)

###### 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.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQzOTk1NTksIm5iZiI6MTc3NDM5OTI1OSwicGF0aCI6Ii80MTI2MTIvMzQwMzA2MDYyLTg0MjA0MDg0LWEwYmUtNGM1NC04ZTFiLTcyZThjNTNjMDhlOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyNVQwMDQwNTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYWFlNTM1MzRjMmVlNDdjOTFmMjI4NGQ5OWQzNWExMDViNGY3NDg0OWM2Nzc5OGQxYzMzNDFlYWFlMjE3YjdlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Xd1qmeWFNXqC-l5NCu6-JzzI9kbMsXwVpETGW7wWQOA)](https://private-user-images.githubusercontent.com/412612/340306062-84204084-a0be-4c54-8e1b-72e8c53c08e8.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzQzOTk1NTksIm5iZiI6MTc3NDM5OTI1OSwicGF0aCI6Ii80MTI2MTIvMzQwMzA2MDYyLTg0MjA0MDg0LWEwYmUtNGM1NC04ZTFiLTcyZThjNTNjMDhlOC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwMzI1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDMyNVQwMDQwNTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yYWFlNTM1MzRjMmVlNDdjOTFmMjI4NGQ5OWQzNWExMDViNGY3NDg0OWM2Nzc5OGQxYzMzNDFlYWFlMjE3YjdlJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.Xd1qmeWFNXqC-l5NCu6-JzzI9kbMsXwVpETGW7wWQOA). 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

54

—

FairBetter than 97% of packages

Maintenance79

Regular maintenance activity

Popularity35

Limited adoption so far

Community24

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

109d 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

[dotdigital/dotdigital-magento2-extension

Dotdigital for Magento 2

50374.2k18](/packages/dotdigital-dotdigital-magento2-extension)[magepal/magento2-gmailsmtpapp

Magento 2 SMTP Extension - Configure Magento 2 to send all transactional email using Gmail, G Suite, Amazon SES, Office360, Mailgun, SendGrid, Mandrill or any other SMTP servers

3321.8M2](/packages/magepal-magento2-gmailsmtpapp)[mollie/magento2

Mollie Payment Module for Magento 2

1121.6M10](/packages/mollie-magento2)[omnimail/omnimail

PHP Library to send email across all platforms using one interface.

32934.3k](/packages/omnimail-omnimail)[fredden/magento2-module-javascript-error-reporting

A Magento 2 module which captures JavaScript errors for later review by website administrators

3138.1k](/packages/fredden-magento2-module-javascript-error-reporting)

PHPackages © 2026

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