mailer.beforeSend

Triggered in October\Rain\Mail\Mailer.

Fires before the mailer processes the sending action

Example usage (stops the sending process):

Event::listen('mailer.beforeSend', function ((string|array) $view, (array) $data, (\Closure|string) $callback) {
    return false;
});

Or

$mailerInstance->bindEvent('mailer.beforeSend', function ((string|array) $view, (array) $data, (\Closure|string) $callback) {
    return false;
});