1
1
16Gb2018-08-09 18:36:26
Yii
16Gb, 2018-08-09 18:36:26

Why is Yii2 sending emails via mail() and not via smtp even though smtp is configured?

'mailer' => [
            'class' => 'yii\swiftmailer\Mailer',
         'transport' => [
                'class' => 'Swift_SmtpTransport',
                'host' => '**',
                'username' => '**',
                'password' => '**',
                'port' => '25',
            ],
            'useFileTransport' => false,
        ],

Here is the code from the config. There is no encryption on smtp. When I send a letter, it does not send via smtp, but simply as if via mail. I see it in the header of the email. What are the options. And what should be checked?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2018-08-09
@webinar

Doesn't send yii anything via mail. Give the code of the place where the sending goes, I'm ready to argue that it is there that the sending via mail goes bypassing the mailer

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question