PHP Class CakeDC\Users\Mailer\UsersMailer

Inheritance: extends Cake\Mailer\Mailer
Show file Open project: cakedc/users

Protected Methods

Method Description
resetPassword ( Cake\Datasource\EntityInterface $user, string $template = 'CakeDC/Users.reset_password' ) : array Send the reset password email to the user
socialAccountValidation ( Cake\Datasource\EntityInterface $user, Cake\Datasource\EntityInterface $socialAccount, string $template = 'CakeDC/Users.social_account_validation' ) : array Send account validation email to the user
validation ( Cake\Datasource\EntityInterface $user, string $subject, string $template = 'CakeDC/Users.validation' ) : array Send the templated email to the user

Method Details

resetPassword() protected method

Send the reset password email to the user
protected resetPassword ( Cake\Datasource\EntityInterface $user, string $template = 'CakeDC/Users.reset_password' ) : array
$user Cake\Datasource\EntityInterface User entity
$template string string, note the first_name of the user will be prepended if exists
return array email send result

socialAccountValidation() protected method

Send account validation email to the user
protected socialAccountValidation ( Cake\Datasource\EntityInterface $user, Cake\Datasource\EntityInterface $socialAccount, string $template = 'CakeDC/Users.social_account_validation' ) : array
$user Cake\Datasource\EntityInterface User entity
$socialAccount Cake\Datasource\EntityInterface SocialAccount entity
$template string string, note the first_name of the user will be prepended if exists
return array email send result

validation() protected method

Send the templated email to the user
protected validation ( Cake\Datasource\EntityInterface $user, string $subject, string $template = 'CakeDC/Users.validation' ) : array
$user Cake\Datasource\EntityInterface User entity
$subject string Subject, note the first_name of the user will be prepended if exist
$template string string, note the first_name of the user will be prepended if exists
return array email send result