MailerAwareTrait
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.
Table of Contents
Methods
- getMailer() : Mailer
- Returns a mailer instance.
Methods
getMailer()
Returns a mailer instance.
protected
getMailer(string $name[, array<string, mixed>|string|null $config = null ]) : Mailer
Parameters
- $name : string
-
Mailer's name.
- $config : array<string, mixed>|string|null = null
-
Array of configs, or profile name string.