Commit 653d2c43ee7a53cae46211f6024d9717a031cb7d

Authored by Anastasia
1 parent 59e8d909

product on main

Showing 1 changed file with 2 additions and 1 deletions   Show diff stats
models/PasswordResetRequestForm.php
... ... @@ -45,6 +45,7 @@
45 45 */
46 46 public function sendEmail()
47 47 {
  48 + $mailer = \Yii::$app->get('smtpmailer');
48 49 /* @var $user Customer */
49 50 $user = Customer::findOne(
50 51 [
... ... @@ -62,7 +63,7 @@
62 63 return false;
63 64 }
64 65 }
65   - return Yii::$app->mailer->compose(
  66 + return $mailer->compose(
66 67 [
67 68 'html' => 'passwordResetToken-html',
68 69 'text' => 'passwordResetToken-text',
... ...