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() publicReturns a mailer instance.
Method Detail
getMailer()source public
getMailer( string $name , Cake\Mailer\Email $email null )
Returns a mailer instance.
Parameters
-  string $name
- Mailer's name.
-  Cake\Mailer\Email$emailoptional null
- Email instance.
Returns
Cake\Mailer\MailerThrows
Cake\Mailer\Exception\MissingMailerExceptionif undefined mailer class.
    © 2005–2016 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.
    http://api.cakephp.org/3.2/class-Cake.Mailer.MailerAwareTrait.html