This panel will track and display mails that have been sent via your application.
It comes with a panel to display data related to an
AuditEntry as well as it’s own grid and view to see all sent mail.
You will need to configure your application to send mail.
As soon as the panel has been added to your configuration it will start tracking mail by listening to the
You can add it to your configuration as follows:
<?php $config = [ 'modules' => [ 'audit' => [ 'panels' => [ 'audit/mail', ], ], ], ]
Simply send an email:
<?php Yii::$app->mailer->compose() ->setFrom('email@example.com') ->setTo('firstname.lastname@example.org') ->setSubject('Message subject') ->setTextBody('Plain text content') ->setHtmlBody('<b>HTML content</b>') ->send();
Now check in the audit module to see your mail: