1、Unable to find the socket transport “ssl”的解决方案
修改 php.ini,将找到“;extension=php_openssl.dll”,去掉前面的分号
2、Failed toauthenticate on SMTP server with username "156699@qq.com" using 1possible authenticators
1、在邮箱设置中开启SMTP服务
2、在开启SMTP服务后,生成一个授权码
3、 $transport=\Swift_SmtpTransport::newInstance("smtp.qq.com","465","ssl")
->setUsername($mail) //发送方邮箱
->setPassword($password);//这里的password实际上是指 授权码,不是邮箱的密码