Answer the question
In order to leave comments, you need to log in
Where is the port for sending emails specified in yii2?
Good day. Help me please. I have a site. And recently they transferred it from the server to the hosting, but the standard port for sending 25 is blocked there and I need to change it. But where to change it?
The site is made so crooked that nothing can be found.
Tell me where it can be indicated or how to find it.
All the options that Google offered did not help, since there are simply no such files.
Answer the question
In order to leave comments, you need to log in
'components' => [
* 'mailer' => [
* 'class' => 'yii\swiftmailer\Mailer',
* 'transport' => [
* 'class' => 'Swift_SmtpTransport',
* 'host' => 'localhost',
* 'username' => 'username',
* 'password' => 'password',
* 'port' => '587',
* 'encryption' => 'tls',
* ],
* ],
* // ...
* ],
Somewhere in your application config there are settings. Usually located in /common/config. In principle, you can open the index.php file and see what is connected from where.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question