Y
Y
yativ_sobb2017-08-22 18:19:22
Yii
yativ_sobb, 2017-08-22 18:19:22

Yii2 not sending email?

I configured smtp and still the email is not sent

'mailer' => [
             'class' => 'yii\swiftmailer\Mailer',
              'viewPath' => '@app/mail',
              'transport' => [
                  'class' => 'Swift_SmtpTransport',
                  'host' => '212.224.124.72',
                  'username' => '[email protected]',
                  'password' => '123456789',
                  'port' => 25,
                  'encryption' => 'ssl',
              ],
              'useFileTransport' => false,
        ],

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
melnikov_m, 2017-08-22
@yativ_sobb

this is more a configuration question than Yii.
Check if the port is different or
'encryption' => 'tls',

D
Dmitry, 2017-08-22
@slo_nik

Good evening.
'useFileTransport' => true

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question