mailer.send
Fires after the message has been sent
Example usage (logs the message):
Event::listen('mailer.send', function ((\Winter\Storm\Mail\Mailer) $mailerInstance, (string) $view, (\Illuminate\Mail\Message) $message, (array) $data) {
\Log::info("Message was rendered with $view and sent");
});
Or
$mailerInstance->bindEvent('mailer.send', function ((string) $view, (\Illuminate\Mail\Message) $message, (array) $data) {
\Log::info("Message was rendered with $view and sent");
});
Usage
Triggers
Class or file | Line |
---|---|
Winter\Storm\Mail\Mailer
|
180 |
Copyright © 2024 Winter CMS