PHPackages                             m2coach/mftf-mailhog-wrapper - 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. m2coach/mftf-mailhog-wrapper

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

m2coach/mftf-mailhog-wrapper
============================

Verify your e-mails after being delivered with Mailhog wrapper.

0.1.2(6y ago)93MITPHPPHP ^7.1

Since Dec 21Pushed 6y ago2 watchersCompare

[ Source](https://github.com/lbajsarowicz/MFTF-MailHog-Wrapper)[ Packagist](https://packagist.org/packages/m2coach/mftf-mailhog-wrapper)[ RSS](/packages/m2coach-mftf-mailhog-wrapper/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (2)Versions (3)Used By (0)

MFTF to MailHog wrapper
=======================

[](#mftf-to-mailhog-wrapper)

[![CircleCI](https://camo.githubusercontent.com/f489f63edde1c8afa1c4985a533cd6468d3d69d693ae6bb3ca7adcb23731fd35/68747470733a2f2f636972636c6563692e636f6d2f67682f4d32436f6163682f4d4654462d4d61696c486f672d577261707065722f747265652f6d61737465722e7376673f7374796c653d737667)](https://circleci.com/gh/M2Coach/MFTF-MailHog-Wrapper/tree/master)

What is it about?
-----------------

[](#what-is-it-about)

- [Magento Functional Testing Framework](https://github.com/magento/magento2-functional-testing-framework/) is complete Acceptance Testing solution delivered OOTB with Magento 2.
- [MailHog](https://github.com/mailhog/MailHog) is a tool installed along the web project, used to test e-mail sending during development of application.

Why you should use it?
----------------------

[](#why-you-should-use-it)

Does your project look professional, if you deliver to your client a web store which welcomes Customers after registration with e-mail of Subject: **Welcome to {{StoreName}}** and contents beginning with **Hello {{FirstName}} {{LastName}},**. I think it's not. That's why I want to help you with avoiding such embarassing moments.

The best way is to test what e-mails are sent to the customers, just like the live website does. But we should not reinvent the wheel! There are tons of solutions that help you to verify how e-mails are sent, without using real SMTP account. One of them is MailHog, which behaves (for application) just like regular SMTP server, except the fact, that messages are not sent over the Internet.

Demo
----

[](#demo)

[![](.github/mailhog-demo.gif)](.github/mailhog-demo.gif)

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

[](#installation)

- Get the package

    ```
    $ composer require m2coach/mftf-mailhog-wrapper
    ```
- Configure MailHog URL in `/dev/tests/acceptance/.env`

    ```
    MAILHOG_BASE_URL=http://mailhog:8025/

    ```

Usage
-----

[](#usage)

### Action Groups provided

[](#action-groups-provided)

- Verify if Inbox is empty:

    ```

    ```
- Open Message by it's Index (nth row)

    ```

    ```
- Open Message by it's Subject and Index

    ```

    ```
- Open Message by it's Recipient and Index

    ```

    ```
- Open Message by it's Recipient, Subject and Index

    ```

    ```
- Verify e-mail subject

    ```

    ```
- Verify e-mail sender

    ```

    ```
- Verify e-mail recipient

    ```

    ```
- Delete All Messages

    ```

    ```
- Delete currently opened Message

    ```

    ```

### Selectors provided

[](#selectors-provided)

- Inbox Grid (`InboxGridSection`)

    - Inbox Container (`InboxContainer`)
    - Message row (`MessageRow`)
    - Message row by it's index (`NthMessageRow(#)`)
    - Message row by recipient and it's index (`NthMessageRowByRecipient(Subject, #)`)
    - Message row by recipient, subject and it's index (`NthMessageRowByRecipientAndSubject(Recipient, Subject, #)`)
    - Message row by subject and it's index (`NthMessageRowBySubject(Subject, #)`)
    - Delete All Messages button (`DeleteAllButton`)
    - Delete All Messages confirmation button (`DeleteAllConfirmationButton`)
- Single Message (`MessageSection`)

    - Sender (`Sender`)
    - Recipient (`Recipient`)
    - Subject (`Subject`)
    - Contents (`Content`)
    - Delete Message button (`DeleteMessageButton`)

License
-------

[](#license)

Copyright © 2019, Łukasz Bajsarowicz [M2.coach](https://m2.coach)

Releases under MIT license, see [LICENSE](LICENSE.md) for details.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~81 days

Total

2

Last Release

2301d ago

PHP version history (2 changes)0.1.1PHP ~7.1.0|~7.2.0

0.1.2PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/d49d7f138bf5ccde1830861762c360db103f373075b83323a1d5cf8d43e921ef?d=identicon)[lbajsarowicz](/maintainers/lbajsarowicz)

---

Top Contributors

[![lbajsarowicz](https://avatars.githubusercontent.com/u/1639941?v=4)](https://github.com/lbajsarowicz "lbajsarowicz (9 commits)")

### Embed Badge

![Health badge](/badges/m2coach-mftf-mailhog-wrapper/health.svg)

```
[![Health](https://phpackages.com/badges/m2coach-mftf-mailhog-wrapper/health.svg)](https://phpackages.com/packages/m2coach-mftf-mailhog-wrapper)
```

###  Alternatives

[magento/community-edition

Magento 2 (Open Source)

12.1k53.0k12](/packages/magento-community-edition)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)[mattketmo/email-checker

Throwaway email detection library

2752.1M5](/packages/mattketmo-email-checker)[omise/omise-magento

Accept payments on your Magento 2 website with Omise

3419.0k](/packages/omise-omise-magento)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.5k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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