sendTo = $user->email; $this->subject = 'Password reset for ' . Yii::$app->name; $this->mailLayout = ['html' => 'passwordResetToken-html', 'text' => 'passwordResetToken-text']; //+ $this->params = ['user' => $user];//+ } }