Connection could not be established with host [Connection timed out #110]
框架配置 用
端口用 465
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'useFileTransport' =>false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => '',
'username' => 'yuandanghui',
'password' => 'admin123',
'port' => '465',
'encryption' => 'ssl',
],