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 yesterday

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 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

2253d 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

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[netflie/laravel-notification-whatsapp

Laravel notification driver for WhatsApp

176173.9k](/packages/netflie-laravel-notification-whatsapp)

PHPackages © 2026

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