A
A
Alexander Ampleev2017-08-10 21:49:11
linux
Alexander Ampleev, 2017-08-10 21:49:11

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();
    }

I can't even figure out where to look...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
CityCat4, 2017-08-11
@CityCat4

For starters - in the mail logs

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question