Provides functionality for loading mailer classes onto properties of the host object.
Example users of this trait are Cake\Controller\Controller and Cake\Console\Command.
Returns a mailer instance.
getMailer(string $name, array<string, mixed>|string|null $config = null): Cake\Mailer\Mailer
Returns a mailer instance.
string
$name Mailer's name.
array<string, mixed>|string|null
$config optional Array of configs, or profile name string.
Cake\Mailer\Mailer
Cake\Mailer\Exception\MissingMailerException
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.4/trait-Cake.Mailer.MailerAwareTrait.html