PHPackages                             saldanhakun/magento2-mailtrap - 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. saldanhakun/magento2-mailtrap

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

saldanhakun/magento2-mailtrap
=============================

Enable mail testing through Mailtrap.io in Magento CE 2.4+

07PHP

Since Mar 17Pushed 1y agoCompare

[ Source](https://github.com/saldanhakun/magento2-mailtrap)[ Packagist](https://packagist.org/packages/saldanhakun/magento2-mailtrap)[ RSS](/packages/saldanhakun-magento2-mailtrap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

magento2-mailtrap
=================

[](#magento2-mailtrap)

Integrate [mailtrap.io](https://mailtrap.io) with Magento CE 2.4+ to simplify e-mail testing.

**Note:** At this version, the integration uses the SMTP interface of MailTrap, not the API.

Requirements
------------

[](#requirements)

- Magento Community Edition 2.4+ (tested with 2.4.7-p4)
- PHP 8.0 (tested with 8.3)
- Mailtrap Account, either free or paid
- Mailtrap agent SMTP username
- Mailtrap agent SMTP password

How to install
--------------

[](#how-to-install)

After installing Magento 2, run the following commands from your Magento 2 root directory:

```
composer require saldanhakun/magento2-mailtrap
php bin/magento module:enable Saldanhakun_Mailtrap
php bin/magento setup:di:compile
php bin/magento cache:flush

```

### Using a specific version

[](#using-a-specific-version)

This project is published on GitHub and syncronized with Packagist.org, so on every version update I release composer will be able to update it automatically. Semantic version naming will be adopted, so it should be safe to allow version bumping and even minor/major updates.

You may test the pre-release with `composer require saldanhakun/magento2-mailtrap:dev-master`. You may also lock or profere a specfific version, depending on your project stability requirements, such as `composer req saldanhakun/magento2-mailtrap:=1.1.0` or `composer req saldanhakun/magento2-mailtrap:^1.1`It is my intent to keep the 1.x branch compatible with Magento CE 2.4 and Magento CE 2.5 (no support, yet).

Perhaps I shall implement backward support for 2.3, if you need it, get in touch.

### Using with other Magento solutions

[](#using-with-other-magento-solutions)

This plugin was only tested in Magento Community, so I don't known if it works on Adobe Commerce, either on premises or cloud. If you find out it does, please notify me. Or get in touch so we can work together in making it compatible.

Contribute
----------

[](#contribute)

Feel free to **fork** and contribute to this module. Simply create a pull request and we'll review and merge your changes to master branch. The original project seemed abandoned and we needed a Magento 2.4+ compatible integration with Mailtrap.

About Uttara E-commerce
-----------------------

[](#about-uttara-e-commerce)

Uttara is a e-commerce consultant agency located in Brazil. For more information, please visit [uttara.com.br](https://www.uttara.com.br/).

About Codepeak
--------------

[](#about-codepeak)

Codepeak is a Magento consultant agency located in Sweden. For more information, please visit [codepeak.se](https://codepeak.se). This project is a fork of the (abandoned) [codepeak/magento2-mailtrap](https://github.com/codepeak/magento2-mailtrap) published on GitHub.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity15

Early-stage or recently created project

 Bus Factor1

Top contributor holds 85.7% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/995cb4a5fe4276f7df659b88f582bbecd3bedf401501e9b0b6df064c0fa9e10e?d=identicon)[saldanhakun](/maintainers/saldanhakun)

---

Top Contributors

[![saldanhakun](https://avatars.githubusercontent.com/u/7916958?v=4)](https://github.com/saldanhakun "saldanhakun (6 commits)")[![robbanl](https://avatars.githubusercontent.com/u/922250?v=4)](https://github.com/robbanl "robbanl (1 commits)")

### Embed Badge

![Health badge](/badges/saldanhakun-magento2-mailtrap/health.svg)

```
[![Health](https://phpackages.com/badges/saldanhakun-magento2-mailtrap/health.svg)](https://phpackages.com/packages/saldanhakun-magento2-mailtrap)
```

###  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)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

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