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,6 +45,7 @@
45 */ 45 */
46 public function sendEmail() 46 public function sendEmail()
47 { 47 {
  48 + $mailer = \Yii::$app->get('smtpmailer');
48 /* @var $user Customer */ 49 /* @var $user Customer */
49 $user = Customer::findOne( 50 $user = Customer::findOne(
50 [ 51 [
@@ -62,7 +63,7 @@ @@ -62,7 +63,7 @@
62 return false; 63 return false;
63 } 64 }
64 } 65 }
65 - return Yii::$app->mailer->compose( 66 + return $mailer->compose(
66 [ 67 [
67 'html' => 'passwordResetToken-html', 68 'html' => 'passwordResetToken-html',
68 'text' => 'passwordResetToken-text', 69 'text' => 'passwordResetToken-text',