Answer the question
In order to leave comments, you need to log in
Why did mail stop working on the server?
On the server mail always went normally and now goes on other projects. But it stopped there (at what it works locally, oddly enough, through xampp).
Here is the code:
private function sendEmailRecovery($email, $recoveryCode){
Yii::$app->mailer->compose('recovery/pass.php', [
'recoveryCode' => $recoveryCode,
'urlRec' => Url::to(['hash/getter'], true),
])
->setFrom(Yii::$app->params['mainEmailSender'])
->setTo($email)
->setSubject('восстановление пароля')
->send();
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question