2017 © Pedro PelĂĄez
 

magento2-module magento2-module-mailcatcher

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

image

staempfli/magento2-module-mailcatcher

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

  • Friday, July 6, 2018
  • by staempfli-webteam
  • Repository
  • 7 Watchers
  • 7 Stars
  • 1,315 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 21 % Grown

The README.md

Magento 2 Mail Catcher

Codacy Badge Code Climate Issue Count, (*1)

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

Features:, (*3)

  • 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 instead of logging them

Introduction

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)

  • 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., (*6)

Installation

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

Usage

Magento Admin > Stores > Configuration > Staempfli > Mail Catcher, (*7)

Mail Catcher Admin Configuration, (*8)

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., (*9)

See: etc/di.xml, (*10)

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:, (*11)

<directory suffix="Test.php">&magentoDir;/vendor/staempfli/magento2-module-mailcatcher/Test/Integration</directory>

Prerequisites

  • PHP >= 7.0.*
  • Magento >= 2.1.*

Developers

Juan Alonso, and all other contributors, (*12)

License

Open Software License ("OSL") v. 3.0, (*13)

(c) 2017, StÀmpfli AG, (*14)

The Versions

06/07 2018

dev-master

9999999-dev

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

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ^7.0|^7.1
  • magento/framework ~100.1|~101.0

 

mail email module magento2 catch catcher

06/07 2018

dev-develop

dev-develop

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

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ^7.0|^7.1
  • magento/framework ~100.1|~101.0

 

mail email module magento2 catch catcher

06/07 2018

2.0.2

2.0.2.0

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

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ^7.0|^7.1
  • magento/framework ~100.1|~101.0

 

mail email module magento2 catch catcher

19/06 2018

2.0.1

2.0.1.0

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

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ^7.0|^7.1
  • magento/framework ~100.1|~101.0

 

mail email module magento2 catch catcher

14/06 2018

2.0

2.0.0.0

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

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ^7.0|^7.1
  • magento/framework ~100.1|~101.0

 

mail email module magento2 catch catcher

09/05 2018

1.1

1.1.0.0

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

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ^7.0|^7.1
  • magento/framework ~100.1|~101.0

 

mail email module magento2 catch catcher

09/10 2017

1.0

1.0.0.0

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

  Sources   Download

OSL-3.0 AFL-3.0

The Requires

  • php ~7.0.0

 

mail email module magento2 catch catcher