public function sendGeneratedPassword(User $user, $password)
    {
        return $this->sendMessage(
            $user->email,
            $this->getNewPasswordSubject(),
            'new_password',
            ['user' => $user, 'password' => $password, 'module' => $this->module]
        );
    }
public function sendGeneratedPassword(User $user, $password)
    {
        return $this->sendMessage(
            $user->email,
            $this->getNewPasswordSubject(),
            'new_password',
            ['user' => $user, 'password' => $password, 'module' => $this->module]
        );
    }
public function sendGeneratedPassword ( User $ user , $ password ) { return $ this -> sendMessage ( $ user -> email , $ this -> getNewPasswordSubject ( ) , 'new_password' , [ 'user' => $ user , 'password' => $ password , 'module' => $ this -> module ] ) ; }
Sends a new generated password to a user.

@param User  $user
@param Password $password

@return bool
Sends a new generated password to a user .