利用tinnkPHP集成PHPMailer发送邮件时报错?报错-问答-阿里云开发者社区-阿里云

开发者社区> 问答> 正文

利用tinnkPHP集成PHPMailer发送邮件时报错?报错

错误提示是这个:SMTP -> ERROR: Failed to connect to server: Unable to find the socket transport "ssl" - did you forget to enable it when you configured PHP? (1921122479)

SMTP Error: Could not connect to SMTP host. Mailer Error: SMTP Error: Could not connect to SMTP host.

其中extension=php_openssl.dill 已经开启,libeay32.dill和ssleay32.dll两个也拷贝到了system32下

展开
收起
爱吃鱼的程序员 2020-06-14 20:13:35 620 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    发邮件还是建议使用成熟的第三方解决方案,如sendcloud。应该是phpmail里面端口,协议设置SMTPSecure,Port设置错误。具体看看网上一些介绍这些都设置好了啊不是要设置stmp吗.一班我都用腾讯或者163的.这些都设置了

    2020-06-14 20:13:51
    赞同 展开评论 打赏
问答分类:
PHP
问答地址:
相关产品:
问答排行榜
最热
最新
相关电子书
更多
低代码开发师(初级)实战教程
立即下载
阿里巴巴DevOps 最佳实践手册
立即下载
冬季实战营第三期:MySQL数据库进阶实战
立即下载