CakeDC\Users\Email\EmailSender::sendResetPasswordEmail PHP Method

sendResetPasswordEmail() public method

Send the reset password 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
$email 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 function sendResetPasswordEmail(EntityInterface $user, Email $email = null, $template = 'CakeDC/Users.reset_password')
    {
        $this->getMailer('CakeDC/Users.Users', $this->_getEmailInstance($email))->send('resetPassword', [$user, $template]);
    }