mailer.send

Triggered in October\Rain\Mail\Mailer.

Fires after the message has been sent

Example usage (logs the message):

Event::listen('mailer.send', function ((\October\Rain\Mail\Mailer) $mailerInstance, (string) $view, (\Illuminate\Mail\Message) $message) {
    \Log::info("Message was rendered with $view and sent");
});

Or

$mailerInstance->bindEvent('mailer.send', function ((string) $view, (\Illuminate\Mail\Message) $message) {
    \Log::info("Message was rendered with $view and sent");
});