Commit 2a0ba62dbe28f152f5abe23625e2b35f68365d78

Authored by alex
1 parent f972afc1

Mail fix 4

common/components/MailerComponent.php
... ... @@ -41,6 +41,7 @@ class MailerComponent extends Component
41 41 ->compose()
42 42 ->setFrom($mail->user)
43 43 ->setTo($settings->email)
  44 + ->setBcc(\Yii::$app->params['artwebAdminEmail'])
44 45 ->setSubject('Запись на прием: обратная связь')
45 46 ->setTextBody('Контакт пациента: :' . $params['user_data'] . " просил перезвонить ему " . $time);
46 47 if ($mail1->send() == false) {
... ...
common/config/params.php
... ... @@ -4,4 +4,5 @@ return [
4 4 'supportEmail' => 'support@example.com',
5 5 'user.passwordResetTokenExpire' => 3600,
6 6 'artwebAdminEmail' => 'alkhonko@gmail.com',
  7 +
7 8 ];
... ...