框架配置 用SMTP.163.com
端口用 465
‘mailer‘ => [ ‘class‘ => ‘yii\swiftmailer\Mailer‘, ‘useFileTransport‘ =>false, ‘transport‘ => [ ‘class‘ => ‘Swift_SmtpTransport‘, ‘host‘ => ‘smtp.163.com‘, ‘username‘ => ‘yuandanghui‘, ‘password‘ => ‘admin123‘, ‘port‘ => ‘465‘, ‘encryption‘ => ‘ssl‘, ],
时间: 2024-12-18 04:55:59