mailer.beforeSend
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;
});
Usage
Triggers
Class or file | Line |
---|---|
Winter\Storm\Mail\Mailer
|
76 |
Copyright © 2024 Winter CMS