mailer.beforeAddContent

Triggered in October\Rain\Mail\Mailer.

Fires before the mailer adds content to the message

Example usage (stops the content adding process):

Event::listen('mailer.beforeAddContent', function ((\Illuminate\Mail\Message) $message, (string) $view, (string) $plain, (string) $raw, (array) $data) {
    return false;
});

Or

$mailerInstance->bindEvent('mailer.beforeAddContent', function ((\October\Rain\Mail\Mailer) $mailerInstance, (\Illuminate\Mail\Message) $message, (string) $view, (string) $plain, (string) $raw, (array) $data) {
    return false;
});