src/Security/MemberAuthenticator/LostPasswordHandler.php
protected function sendEmail($member, $token)
    {
        /** @var Email $email */
        $email = Email::create()
            ->setHTMLTemplate('SilverStripe\\Control\\Email\\ForgotPasswordEmail')
            ->setData($member)
            ->setSubject(_t(
                'SilverStripe\\Security\\Member.SUBJECTPASSWORDRESET',
                "Your password reset link",
                'Email subject'
            ))
            ->addData('PasswordResetLink', Security::getPasswordResetLink($member, $token))
            ->setTo($member->Email);
        return $email->send();
    }
protected function sendEmail($member, $token)
    {
        /** @var Email $email */
        $email = Email::create()
            ->setHTMLTemplate('SilverStripe\\Control\\Email\\ForgotPasswordEmail')
            ->setData($member)
            ->setSubject(_t(
                'SilverStripe\\Security\\Member.SUBJECTPASSWORDRESET',
                "Your password reset link",
                'Email subject'
            ))
            ->addData('PasswordResetLink', Security::getPasswordResetLink($member, $token))
            ->setTo($member->Email);
        return $email->send();
    }
protected function sendEmail ( $ member , $ token ) { /** @var Email $email */ $ email = Email :: create ( ) -> setHTMLTemplate ( 'SilverStripe\\Control\\Email\\ForgotPasswordEmail' ) -> setData ( $ member ) -> setSubject ( _t ( 'SilverStripe\\Security\\Member.SUBJECTPASSWORDRESET' , "Your password reset link" , 'Email subject' ) ) -> addData ( 'PasswordResetLink' , Security :: getPasswordResetLink ( $ member , $ token ) ) -> setTo ( $ member -> Email ) ; return $ email -> send ( ) ; }
Send the email to the member that requested a reset link
@param Member $member
@param string $token
@return bool
Send the email to the member that requested a reset link