mailer.addContent

Fires after the mailer has added content to the message

Example usage (Logs that content has been added):

Event::listen('mailer.addContent', function ((\Winter\Storm\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");
});

Usage

Triggers

Class or file Line
Winter\Storm\Mail\Mailer 280
Copyright © 2024 Winter CMS