When emails for log events are sent, the \Monolog\Handler\NativeMailerHandler allows a more flexible use of the sendmail command as \Monolog\Handler\SwiftMailerHandler does.
Because the NativeMailerHandler evaluates the php ini setting sendmail_path, the way emails are sent can be configured per host. This allows for example the use of mailhog in testing enviroments.
UAC
- It is possible to configure
\Monolog\Handler\NativeMailerHandler as mailer handler in loggers section
When emails for log events are sent, the
\Monolog\Handler\NativeMailerHandlerallows a more flexible use of thesendmailcommand as\Monolog\Handler\SwiftMailerHandlerdoes.Because the
NativeMailerHandlerevaluates the php ini settingsendmail_path, the way emails are sent can be configured per host. This allows for example the use of mailhog in testing enviroments.UAC
\Monolog\Handler\NativeMailerHandleras mailer handler inloggerssection