PHPackages                             staempfli/magento2-module-mailcatcher - 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. staempfli/magento2-module-mailcatcher

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

staempfli/magento2-module-mailcatcher
=====================================

magento 2 module to catch, log and redirect emails on local and dev

2.0.3(7y ago)144.2k4OSL-3.0PHPPHP ^7.0|^7.1|^7.2

Since Oct 9Pushed 4y ago7 watchersCompare

[ Source](https://github.com/staempfli/magento2-module-mailcatcher)[ Packagist](https://packagist.org/packages/staempfli/magento2-module-mailcatcher)[ RSS](/packages/staempfli-magento2-module-mailcatcher/feed)WikiDiscussions develop Synced 2d ago

READMEChangelogDependencies (1)Versions (8)Used By (0)

Magento 2 Mail Catcher
======================

[](#magento-2-mail-catcher)

[![Project Status: Abandoned – Initial development has started, but there has not yet been a stable, usable release; the project has been abandoned and the author(s) do not intend on continuing development.](https://camo.githubusercontent.com/14a8e7234bd98508cfd9903b34d873f772f8bad5efc410eddd157e9561fa51e6/687474703a2f2f7777772e7265706f7374617475732e6f72672f6261646765732f6c61746573742f6162616e646f6e65642e737667)](http://www.repostatus.org/#abandoned)[![Codacy Badge](https://camo.githubusercontent.com/6a29338aa6dfdcf2c9106c12d7ec9503b6c356d79b6cbaadef48a91200a74d32/68747470733a2f2f6170692e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f3337313161633666666130623434383438646533373562353461653231633064)](https://www.codacy.com/app/Staempfli/magento2-module-mailcatcher?utm_source=github.com&utm_medium=referral&utm_content=staempfli/magento2-module-mailcatcher&utm_campaign=Badge_Grade)[![Code Climate](https://camo.githubusercontent.com/cb374e3bc86957cf822b0cebefbfdfd540bfe2243a1a63a936587969d1c46697/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f737461656d70666c692f6d6167656e746f322d6d6f64756c652d6d61696c636174636865722f6261646765732f6770612e737667)](https://codeclimate.com/github/staempfli/magento2-module-mailcatcher)[![Issue Count](https://camo.githubusercontent.com/e4676ef773be43badc83d2d874c0ee860ca8994cba4909773599423865b10037/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f737461656d70666c692f6d6167656e746f322d6d6f64756c652d6d61696c636174636865722f6261646765732f69737375655f636f756e742e737667)](https://codeclimate.com/github/staempfli/magento2-module-mailcatcher)

Magento 2 module to catch, log and redirect emails on local and stage enviroments.

Features:

- Catch and log all emails
- Whitelist domains or emails that you do not want to catch (Merchant domain, developer emails)
- Redirect catched emails to a [trash-mail](https://www.trash-mail.com/inbox/) instead of logging them

Introduction
------------

[](#introduction)

Although the recommended way to catch emails is using a mailCatcher like [MailHog](https://github.com/mailhog/MailHog), this is not always easy to setup in all environments and configurations:

Facts:

- Not all your developers have same local systems and configurations
- Stage servers might use different mail transfer agents (sendmail, postfix)
- Projects might use the merchant STMP server for sending emails
- Merchants want to test how real emails are sent and not use a catching Web UI

If you have these problems, that's when this module comes in handy. This module catches emails before they reach the transfer agent. No extra tools needed for your projects, simply install and enable it on Magento Admin.

Installation
------------

[](#installation)

```
$ composer require "staempfli/magento2-module-mailcatcher":"~1.0"

```

Usage
-----

[](#usage)

`Magento Admin > Stores > Configuration > Staempfli > Mail Catcher`

[![Mail Catcher Admin Configuration](docs/img/mailcatcher_admin.png)](docs/img/mailcatcher_admin.png)

Disclaimer
----------

[](#disclaimer)

This module uses a plugin on `Magento\Framework\Mail\TransportInterfaceFactory::create()`, watch out that your code or other modules installed do not overrite that method.

See: [etc/di.xml](etc/di.xml)

Tests
-----

[](#tests)

In order to prove that the mail catcher always work, we recommend you to run included integration tests on your CI environment. Add this into your `dev/tests/integration/framework/phpunit.xml`:

```
&magentoDir;/vendor/staempfli/magento2-module-mailcatcher/Test/Integration

```

Prerequisites
-------------

[](#prerequisites)

- PHP &gt;= 7.0.\*
- Magento &gt;= 2.1.\*

Developers
----------

[](#developers)

Juan Alonso, and all other [contributors](https://github.com/staempfli/magento2-module-mailcatcher/contributors)

License
-------

[](#license)

[Open Software License ("OSL") v. 3.0](https://opensource.org/licenses/OSL-3.0)

Copyright
---------

[](#copyright)

(c) 2017, Stämpfli AG

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 60% 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 ~109 days

Recently: every ~84 days

Total

6

Last Release

2590d ago

Major Versions

1.1 → 2.02018-06-14

PHP version history (3 changes)1.0PHP ~7.0.0

1.1PHP ^7.0|^7.1

2.0.3PHP ^7.0|^7.1|^7.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/402069?v=4)[Marcel Hauri](/maintainers/mhauri)[@mhauri](https://github.com/mhauri)

![](https://www.gravatar.com/avatar/71706506f6589b5436c45edfcf1ae57d8ced0d5571c06fdd48cf97d41b0bbcb8?d=identicon)[staempfli-webteam](/maintainers/staempfli-webteam)

![](https://www.gravatar.com/avatar/0039026286692f2f4f9df99a2625870ca1b157114920093ce0ff89fb5756e064?d=identicon)[audef1](/maintainers/audef1)

---

Top Contributors

[![jalogut](https://avatars.githubusercontent.com/u/6410900?v=4)](https://github.com/jalogut "jalogut (9 commits)")[![audef1](https://avatars.githubusercontent.com/u/4160004?v=4)](https://github.com/audef1 "audef1 (6 commits)")

---

Tags

magento2magento2-extensionmailemailmodulemagento2catchercatch

### Embed Badge

![Health badge](/badges/staempfli-magento2-module-mailcatcher/health.svg)

```
[![Health](https://phpackages.com/badges/staempfli-magento2-module-mailcatcher/health.svg)](https://phpackages.com/packages/staempfli-magento2-module-mailcatcher)
```

PHPackages © 2026

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