mailer.addContent

Triggered in October\Rain\Mail\Mailer.

Fires after the mailer has added content to the message

Example usage (Logs that content has been added):

Event::listen('mailer.addContent', function ((\October\Rain\Mail\Mailer) $mailerInstance, (\Illuminate\Mail\Message) $message, (string) $view, (array) $data) {
    \Log::info("$view has had content added to the message");
});

Or

$mailerInstance->bindEvent('mailer.addContent', function ((\Illuminate\Mail\Message) $message, (string) $view, (array) $data) {
    \Log::info("$view has had content added to the message");
});