为了账号安全,请及时绑定邮箱和手机立即绑定

解决 PHPMailer 错误 SMTP 连接失败

解决 PHPMailer 错误 SMTP 连接失败

PHP
肥皂起泡泡 2021-08-28 10:06:48
如何解决 phpmailer 中的这个错误?这几个月前我测试时从未发生过。2019-06-18 15:26:33 Connection: opening to ssl://localhost:465, timeout=300, options=array ( ) 2019-06-18 15:26:33 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): Peer certificate CN=`server18.hostingraja.org' did not match expected CN=`localhost' 2019-06-18 15:26:33 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): Failed to enable crypto 2019-06-18 15:26:33 Connection: Failed to connect to server. Error number 2. "Error notice: stream_socket_client(): unable to connect to ssl://localhost:465 (Unknown error) 2019-06-18 15:26:33 SMTP ERROR: Failed to connect to server: (0) 2019-06-18 15:26:33 SMTP connect() failed. https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting`
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 601 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信