Answer the question
In order to leave comments, you need to log in
Why are emails not being sent to Yii2 (error 220)?
When sending an email: Expected response code 220 but got an empty response
'mail' => [
'class' => 'yii\swiftmailer\Mailer',
'viewPath' => '@backend/mail',
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.gmail.com',
'username' => 'my_email',
'password' => 'may_password',
'port' => '465',
'encryption' => 'ssl',
Answer the question
In order to leave comments, you need to log in
Maybe it's time from the last decade to the present?
'port' => '587',
'encryption' => 'tls',
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question