mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Removed ely/email-renderer package and implemented new emails renderer client [skip ci]
This commit is contained in:
@@ -50,7 +50,7 @@ class SendPasswordRecoveryEmail implements RetryableJobInterface {
|
||||
Yii::$app->statsd->inc('queue.sendPasswordRecovery.attempt');
|
||||
$params = new ForgotPasswordParams($this->username, $this->code, $this->link);
|
||||
$to = EmailHelper::buildTo($this->username, $this->email);
|
||||
$template = new ForgotPasswordEmail($to, $this->locale, $params);
|
||||
$template = new ForgotPasswordEmail($to, $this->locale, $params, Yii::$app->emailsRenderer);
|
||||
$template->send();
|
||||
}
|
||||
|
||||
|
@@ -50,7 +50,7 @@ class SendRegistrationEmail implements RetryableJobInterface {
|
||||
Yii::$app->statsd->inc('queue.sendRegistrationEmail.attempt');
|
||||
$params = new RegistrationEmailParams($this->username, $this->code, $this->link);
|
||||
$to = EmailHelper::buildTo($this->username, $this->email);
|
||||
$template = new RegistrationEmail($to, $this->locale, $params);
|
||||
$template = new RegistrationEmail($to, $this->locale, $params, Yii::$app->emailsRenderer);
|
||||
$template->send();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user