'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'messageConfig' => [
'from' => ['noreply@unverified.beget.ru' => 'test'],
],
],
Yii::$app->mailer->compose('@app/modules/users/mails/passwordReset', ['user' => $user])
->setFrom([Yii::$app->params['supportEmail'] => Yii::$app->name . ' robot'])
->setTo($this->email)
->setSubject('Password reset for ' . Yii::$app->name)
->send();
Yii::$app->mailer->compose('@app/modules/users/mails/passwordReset', ['user' => $user])
->setFrom([Yii::$app->params['supportEmail'] => 'sssssssssssssssssssss'])
->setTo($this->email)
->setSubject('Password reset for ' . Yii::$app->name)
->send();