-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[OD-382] Fix order of the around plugins to log messages even the ema…
…il communication feature is disabled
- Loading branch information
Showing
2 changed files
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
## 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. | ||
|
||
## 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` | ||
|
||
## 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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters