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.
Build Tests
Code Quality
Tested on Magento 2.4.9
Recent Test History
Each release is tested against the latest Magento version at that time.
Top Contributors
View LeaderboardShare This Module's Status
README
Loaded from GitHubMygento_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
- original class:
How to use
- Enable
Log Emailon the configuration page. It works independently fromDisable Email Communicationssetting.
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.