code: public function recoverPassword()
  		{
  			$user = User::findOne(['email' => $this->email]);
  
  			if ($user != NULL) {
  				$user->password_reset_token = Yii::$app->getSecurity()->generateRandomString() . '_' . time();
  
  				$user->save(FALSE);
  			}
  
  			// Sends recovery mail
  			Mailer::sendRecoveryMessage($user);
  			Yii::$app->session->setFlash('info', 'You will receive an email with instructions on how to reset your password in a few minutes.');
  		}
docs: Sends recovery message.