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., (*2)
Features:, (*3)
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:, (*4)
Facts:, (*5)
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., (*6)
$ composer require "staempfli/magento2-module-mailcatcher":"~1.0"
Magento Admin > Stores > Configuration > Staempfli > Mail Catcher
, (*7)
, (*8)
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., (*9)
See: etc/di.xml, (*10)
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
:, (*11)
<directory suffix="Test.php">&magentoDir;/vendor/staempfli/magento2-module-mailcatcher/Test/Integration</directory>
Juan Alonso, and all other contributors, (*12)
Open Software License ("OSL") v. 3.0, (*13)
(c) 2017, StÀmpfli AG, (*14)