Trait 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\Shell.
Method Summary
-
getMailer() protected
Returns a mailer instance.
Method Detail
getMailer() protected ¶
getMailer( string $name , Cake\Mailer\Email
$email null )
Returns a mailer instance.
Parameters
- string $name
- Mailer's name.
-
Cake\Mailer\Email
$email optional null - Email instance.