Answer the question
In order to leave comments, you need to log in
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
this is more a configuration question than Yii.
Check if the port is different or
'encryption' => 'tls',
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question