mygento/module-smtp

Magento 2 SMTP

Installs: 2 193

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 6

Forks: 2

Open Issues: 0

Type:magento2-module

2.4.1 2024-07-17 15:04 UTC

This package is auto-updated.

Last update: 2024-07-17 18:36:27 UTC


README

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.