magento 2 module to catch, log and redirect emails on local and dev
Magento 2 module to catch, log and redirect emails on local and stage enviroments.
Although the recommended way to catch emails is using a mailCatcher like MailHog, this is not always easy to setup in all environments and configurations:
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.
$ composer require "staempfli/magento2-module-mailcatcher":"~1.0"
Magento Admin > Stores > Configuration > Staempfli > Mail Catcher
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.
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
Juan Alonso, and all other contributors
(c) 2017, Stämpfli AG