The Home for Magento 2 Excellence

Quality-tested Magento 2 modules. Explore. Evaluate. Elevate. #magento2

1090 Modules
628 Ready
462 Need Help
🏆 Leaderboard
Stable v2.4.3

Mygento SMTP / Email Log for Magento 2

mygento/module-smtp

Extends Magento's email handling to log outgoing messages to the database even when sending is disabled, and adds a configurable blacklist to skip sending to matching addresses, with an admin log grid.

10,554
Downloads
Below average
1
GitHub Stars
Below average
3mo ago
Last Release
0
Open Issues
Build Passing
Ready to install

Build Tests

Composer Install
DI Compile
Templates

Code Quality

CS Coding Standard
110 warnings
L4 PHPStan

Tested on Magento 2.4.9

Recent Test History

Each release is tested against the latest Magento version at that time.

v2.4.3 on Magento 2.4.9
Jun 1, 2026

Share This Module's Status

Mygento SMTP / Email Log for Magento 2 Magento compatibility status badge

README

Loaded from GitHub

Mygento_Smtp module

Extends Magento_Email module. The module adds a feature to log email messages to the database even when email sending is disabled. Adds a blacklist to make it possible to skip sending emails to emails from the blacklist

Admin panel

Stores -> SMTP -> SMTP Log: The grid with email logs

Configuration

Add Yes/No field Log Email to Stores -> Configuration -> Advanced -> System -> Mail Sending Settings
Add days(int) field Clean Email Log Every to Stores -> Configuration -> Advanced -> System -> Mail Sending Settings
Add regex with email to field Blacklist (could be multiline as several expr) to skip sending messages to these emails to Stores -> Configuration -> Advanced -> System -> Mail Sending Settings

Plugins

  • aroundSendMessage
    • original class: \Magento\Framework\Mail\TransportInterface
    • functionality: create Log record in DB

How to use

  1. Enable Log Email on the configuration page. It works independently from Disable Email Communications setting.

This content is fetched directly from the module's GitHub repository. We are not the authors of this content and take no responsibility for its accuracy, completeness, or any consequences arising from its use.