# yireo/magento2-emailtester2

> Preview transactional emails and test send them in your backend

`composer require yireo/magento2-emailtester2`

Canonical URL: https://packagento.com/yireo/magento2-emailtester2

## At a glance

- **Vendor**: yireo (https://packagento.com/yireo.md)
- **Latest version**: 1.8.1 — released 2026-07-09
- **Pricing**: Free
- **Package type**: Magento 2 module
- **Status**: active, accepting new buyers

## Installation

Packagento is licence-gated, so even free packages need a licence on a project before Composer can resolve them.

1. **Sign in or create an account** at https://packagento.com/customer/account/.

2. **Add the package to your account.** Open https://packagento.com/yireo/magento2-emailtester2 and complete the free checkout. A licence is minted automatically.

3. **Create or pick a project, then activate the licence on it.**
   - Projects represent the Magento installs you deploy to. Manage them at https://packagento.com/projects/.
   - Activate the new licence on the project you'll deploy this package to. Activation is what generates the Composer credentials scoped to that project.

4. **Add the project credentials to your Magento codebase.**

   Grab the project's public + private key from https://packagento.com/projects/ (open the project, then its Credentials tab), and add them to `auth.json`:

   ```json
   {
     "http-basic": {
       "packagento.com": {
         "username": "ppk_live_...",
         "password": "psk_live_..."
       }
     }
   }
   ```

   Add the Packagento Composer repository to `composer.json`:

   ```json
   {
     "repositories": [
       { "type": "composer", "url": "https://packagento.com" }
     ]
   }
   ```

5. **Install and apply.**

   ```bash
   composer require yireo/magento2-emailtester2:*
   bin/magento setup:upgrade
   bin/magento setup:di:compile
   bin/magento cache:flush
   ```

## What it does

Preview transactional emails and test send them in your backend

## README

Homepage: https://www.yireo.com/software/magento-extensions/emailtester2

### See also
- [Installation](INSTALL.md)
- [Testing](TESTING.md)
- [ChangeLog](CHANGELOG.md)
- [License](LICENSE.txt)

## Changelog

All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

### [Unreleased]

### [1.8.1] - 09 July 2026
#### Fixed
- Fix outdated dep with Loki Admin Components

### [1.8.0] - 03 July 2026
#### Fixed
- Rewrite to Loki Admin Components
- Remove dependency with `Yireo_SimpleAdminFields`
- Testing "back in stock notfication" uses "price grid" instead of "stock grid" in preview mode #18

### [1.7.10] - 09 June 2026
#### Fixed
- Fix Symfony 7 compatibility to CLI commands

### [1.7.9] - 24 April 2025
#### Fixed
- Fix for Symfony Mailer in Magento 2.4.8

### [1.7.8] - 5 November 2024
#### Fixed
- Properly implement `yireo/magento2-admin-simple-search-fields`

### [1.7.7] - 5 November 2024
#### Fixed
- Add dep `yireo/magento2-admin-simple-search-fields`

### [1.7.6] - 24 October 2024
#### Fixed
- Re-release under GitHub

### [1.7.5] - 24 October 2024
#### Fixed
- Add funding options

### [1.7.4] - 11 July 2023
#### Fixed
- Fix access level issue after 1.7.3 #11 @Phennim

### [1.7.3] - 11 July 2023
#### Fixed
- Fix PHP 8.2 deprecation warnings #10 @Phennim

### [1.7.2] - 19 April 2023
#### Fixed
- Change composer name of React module
- Update XML structure to fix fields not being picked up

### [1.7.1] - 25 March 2023
#### Fixed
- Swap dep of ExtensionChecker with core module info

### [1.7.0] - 24 March 2023
#### Added
- Added dependency with new `Yireo_AdminReactComponents` module

### [1.6.25] - 8 November 2022
#### Fixed
- Calculate if order is virtual by using products

### [1.6.24] - 31 July 2022
#### Fixed
- Bump

### [1.6.23] - 31 July 2022
#### Fixed
- Bump

### [1.6.22] - 31 July 2022
#### Fixed
- Fix empty output in AlertGrid causing `preg_replace` error in Magento core

### [1.6.21] - 31 July 2022
#### Fixed
- Undefined flag with virtual orders (PR 2, @cloudsfactory)

### [1.6.20] - 26 June 2022
#### Fixed
- Copy shipping address from billing address when empty
- Fix PHP 8.1 error with Magento AlertGrid (issue 35569)

### [1.6.21] - 11 July 2022
#### Fixed
- Version bump

### [1.6.20] - 28 June 2021
#### Fixed
- Version bump

### [1.6.19] - 12 August 2021
#### Fixed
- Prevent duplicate AJAX call when searching in modal popup

### [1.6.18] - 17 May 2021
#### Fixed
- Cleanup of DI code
- Use General Contact as a fallback
- Fix for "Send" not picking up on right variables anymore

### [1.6.17] - 13 April 2021
#### Fixed
- Prevent exception when order exists with no invoice

### [1.6.16] - 2 March 2021
#### Fixed
- Remove fake shipping ID because it will only generate an error

### [1.6.15] - 1 March 2021
#### Fixed
- Fixed missing `shipping_id`

### [1.6.14] - 1 March 2021
#### Fixed
- Fixed missing `invoice_id` and `creditmemo_id` just in case

### [1.6.13] - 26 February 2021
#### Fixed
- Remove yarn.lock
- Fixed missing `order_id`
- De-duplicate address code of both Order and OrderVars class

### [1.6.12] - 19 December 2020
#### Fixed
- Re-add `setup_version` for Magento 2.2 compatibility

### [1.6.11] - 30 November 2020
#### Fixed
- Use better method to inject form values in preview URL

#### Added
- Add new customer note variables (2.4+)
- Documented non-extension issue on outdated templates (FAQ)

### [1.6.10] - 19 November 2020
#### Fixed
- Make sure form values for product, order and customer are transferred to preview

### [1.6.9] - 2 November 2020
#### Fixed
- Change form IDs to become more unique to avoid conflicts with other extensions

### [1.6.8] - 30 October 2020
#### Fixed
- Change namespace of UiComponents buttons (`preview`) to avoid conflicts with other mixins

### [1.6.7] - 28 July 2020
#### Fixed
- Bump Magento 2.4 dependencies

### [1.6.6] - 23 July 2020
#### Fixed
- Remove all unneeded CSS from preview page

_(Changelog truncated for .md surface. Full history on https://packagento.com/yireo/magento2-emailtester2.)_

## Recent Versions

| Version | Released |
|---|---|
| 1.8.1 | 2026-07-09 |
| 1.8.0 | 2026-07-03 |
| 1.7.10 | 2026-06-09 |
| 1.7.9 | 2025-10-31 |
| 1.7.8 | 2024-11-05 |
| 1.7.7 | 2024-11-05 |
| 1.7.6 | 2024-10-24 |
| 1.7.5 | 2024-10-24 |
| 1.7.4 | 2023-07-11 |
| 1.7.3 | 2023-07-11 |

Showing 10 of 83 versions. Full release history on https://packagento.com/yireo/magento2-emailtester2.

## Dependencies

### Require

| Package | Constraint |
|---|---|
| ext-json | * |
| ext-pcre | * |
| loki/magento2-admin-components | ^0.7 |
| magento/framework | ^101.0.1\|^101.1\|^102.0\|^103.0 |
| magento/module-backend | ^100.0\|^101.0\|^102.0 |
| magento/module-catalog | ^101.0\|^102.0\|^103.0\|^104.0 |
| magento/module-config | ^100.0\|^101.0 |
| magento/module-customer | ^100.0\|^101.0\|^102.0\|^103.0 |
| magento/module-eav | ^100.0\|^101.0\|^102.0 |
| magento/module-email | ^100.0\|^101.0 |
| magento/module-payment | ^100.0 |
| magento/module-product-alert | ^100.4 |
| magento/module-quote | ^100.0\|^101.0 |
| magento/module-sales | ^100.0\|^101.0\|^102.0\|^103.0 |
| magento/module-store | ^100.0\|^101.0 |
| magento/module-ui | ^101.0 |
| php | ^8.1 |
| psr/log | ^1.0\|^2.0\|^3.0 |
| symfony/console | ^6.0\|^7.0 |
| symfony/mime | ^6.0\|^7.0 |

### Require (dev)

| Package | Constraint |
|---|---|
| yireo/magento2-integration-test-helper | ~0.0 |

## Quality

Latest release (1.8.1) fails the Packagento QA pipeline. Verdicts below are per-cell (Magento line × PHP version) for the matrixed tools, and run-once for the static / security tiers.


### Compatibility

Each Magento line is installed on its supported PHP versions, then the module is built (DI compile + static-content deploy). Cells show passed / failed / untested; staircase gaps render as `–`.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | Pass | Pass | – | – |
| 2.4.8 | – | Pass | Pass | – |
| 2.4.9 | – | – | Pass | Pass |


### Code Quality

Advisory checks against the module's source. Never affect the Compatibility verdict — a phpcs finding can't make a module incompatible.

#### Static Analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| PHPCS | Warning | 19 | 19 warnings (ruleset: Magento2), 4 auto-fixable with phpcbf |
| PHPMD | Warning | 11 | 11 rule violations (UnusedFormalParameter:7, UnusedLocalVariable:3, ExcessiveParameterList:1) |
| Cpd | Warning | 1 | 1 duplicated chunk spanning 36 total lines (min-lines=5, min-tokens=70) |
| Composer validate | Info | 1 | valid; 1 advisory note (composer validate --strict) |

#### PHPStan

Type-checks the module against a real Magento install. Re-runs per Magento + PHP version because resolvable symbols differ between releases.

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 43 | 43 | – | – |
| 2.4.8 | – | 42 | 42 | – |
| 2.4.9 | – | – | 42 | 42 |


### Tests

Unit and integration suites run per Magento + PHP cell. Test failures speak to the module's behaviour, not its compatibility with a line, so they're reported here separately.

#### Unit Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | N/A | N/A | – | – |
| 2.4.8 | – | N/A | N/A | – |
| 2.4.9 | – | – | N/A | N/A |

#### Integration Tests

| Magento | PHP 8.2 | PHP 8.3 | PHP 8.4 | PHP 8.5 |
|---|---|---|---|---|
| 2.4.7 | 37 | 37 | – | – |
| 2.4.8 | – | 37 | 37 | – |
| 2.4.9 | – | – | 37 | Error |


### Security

Dependency-advisory audit (composer audit) plus a source malware scan. A malware detection fails the version outright.

| Tool | Status | Findings | Summary |
|---|---|---|---|
| Composer audit | Pass | 0 |  |
| Malware scan | Pass | 0 |  |

## Licence and pricing

Free. A licence is still minted on checkout and bound to your project for Composer access — no payment step.

Refundable within 14 days of first purchase via https://packagento.com/account/refunds/.

## Install via Claude Code or any MCP client

The Packagento MCP server can run the licence + project + Composer steps above in one tool call:

```
purchase_and_install_packages(
  composer_names=["yireo/magento2-emailtester2"],
  project_id="proj_xxx"
)
```

This handles cart, checkout, licence minting, project activation, and writes auth.json credentials. Connect a client with `claude mcp add packagento https://mcp.packagento.com`. Full setup at https://packagento.com/docs/mcp-setup.

## Vendor

yireo is a Magento 2 vendor on Packagento. See https://packagento.com/yireo.md for their full catalogue.

