S
S
Sergey2015-04-22 23:24:41
linux
Sergey, 2015-04-22 23:24:41

Where does yii2 store mail logs, what else to check if the mail worked, but fell off?

Mail worked fine, but suddenly fell off.
What can be checked?
I send like this:

Yii::$app->mailer->compose()
     ->setTo($mail)
     ->setFrom('[email protected]')
     ->setSubject($subject)
     ->setHtmlBody($text)
     ->send();

I didn’t change the code much, I couldn’t break anything.
So I want to see what's in the logs.
On the centos server, but there is a VPS with cpanel and all the configs through it, which freezes, I don’t know these panels, and the rights on the server are limited because of them.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2015-04-23
@butteff

In general, retreat. The problem is that hosting has a limited number of emails per day.
And so, if on topic, then you can specify filetransfer in mailer as true in the config and then letters will be written to files in the folder runtime/mailer/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question