mirror of
https://github.com/elyby/accounts.git
synced 2025-01-14 07:52:07 +05:30
Фикс получателя для формы обратной связи
This commit is contained in:
parent
862c2d467e
commit
ad058664db
@ -35,8 +35,8 @@ class FeedbackForm extends ApiForm {
|
||||
|
||||
/** @var \yii\swiftmailer\Mailer $mailer */
|
||||
$mailer = Yii::$app->mailer;
|
||||
$fromEmail = Yii::$app->params['supportEmail'];
|
||||
if (!$fromEmail) {
|
||||
$supportEmail = Yii::$app->params['supportEmail'];
|
||||
if (!$supportEmail) {
|
||||
throw new InvalidConfigException('Please specify supportEmail value in app params');
|
||||
}
|
||||
|
||||
@ -47,7 +47,7 @@ class FeedbackForm extends ApiForm {
|
||||
'account' => $account,
|
||||
]);
|
||||
$message
|
||||
->setTo($this->email)
|
||||
->setTo($supportEmail)
|
||||
->setFrom([$this->email => $account ? $account->username : $this->email])
|
||||
->setSubject($this->subject);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user