Method | Description | |
---|---|---|
sendResetPasswordEmail ( Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null, string $template = 'CakeDC/Users.reset_password' ) : array | Send the reset password email | |
sendSocialValidationEmail ( Cake\Datasource\EntityInterface $socialAccount, Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null ) : mixed | Send social validation email to the user | |
sendValidationEmail ( Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null ) : void | Send validation email |
Method | Description | |
---|---|---|
_getEmailInstance ( Cake\Mailer\Email $email = null ) : Cake\Mailer\Email | Get or initialize the email instance. Used for mocking. |
protected _getEmailInstance ( Cake\Mailer\Email $email = null ) : Cake\Mailer\Email | ||
Cake\Mailer\Email | if email provided, we'll use the instance instead of creating a new one | |
return | Cake\Mailer\Email |
public sendResetPasswordEmail ( Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null, string $template = 'CakeDC/Users.reset_password' ) : array | ||
$user | Cake\Datasource\EntityInterface | User entity |
Cake\Mailer\Email | instance, if null the default email configuration with the | |
$template | string | email template Users.validation template will be used, so set a ->template() if you pass an Email instance |
return | array | email send result |
public sendSocialValidationEmail ( Cake\Datasource\EntityInterface $socialAccount, Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null ) : mixed | ||
$socialAccount | Cake\Datasource\EntityInterface | social account |
$user | Cake\Datasource\EntityInterface | user |
Cake\Mailer\Email | Email instance or null to use 'default' configuration | |
return | mixed |
public sendValidationEmail ( Cake\Datasource\EntityInterface $user, Cake\Mailer\Email $email = null ) : void | ||
$user | Cake\Datasource\EntityInterface | User entity |
Cake\Mailer\Email | instance, if null the default email configuration with the | |
return | void |