F
F
Funny_Man2017-08-04 11:42:41
Yii
Funny_Man, 2017-08-04 11:42:41

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

2 answer(s)
M
Maxim Kozhin, 2017-08-04
@maximkozhin

'components' => [
 *         'mailer' => [
 *             'class' => 'yii\swiftmailer\Mailer',
 *             'transport' => [
 *                 'class' => 'Swift_SmtpTransport',
 *                 'host' => 'localhost',
 *                 'username' => 'username',
 *                 'password' => 'password',
 *                 'port' => '587',
 *                 'encryption' => 'tls',
 *             ],
 *         ],
 *         // ...
 *     ],

Taken from yii2-swiftmailer

M
Maxim Timofeev, 2017-08-04
@webinar

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 question

Ask a Question

731 491 924 answers to any question