您的位置:首页 > 编程语言 > PHP开发

php 使用smtp发送邮件问题

2016-11-10 17:13 671 查看

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实际上是指 授权码,不是邮箱的密码

   
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: