【WordPress】CentOS6.10测试WP发送邮件失败
来源:网络整理 网络用户发布,如有版权联系网管删除 2018-08-08
1、错误信息如下:
SMTP -> ERROR: Failed to connect to server: Permission denied (13)
2、解决方法:
https://gistpages.com/posts/phpmailer_smtp_error_failed_to_connect_to_server_permission_denied_13_fix
3、查看phpmailer状态
$ getsebool httpd_can_sendmailhttpd_can_sendmail --> off$ getsebool httpd_can_network_connecthttpd_can_network_connect --> off
4、以上可以看出,需要打开连接
$ setsebool -P httpd_can_sendmail 1$ setsebool -P httpd_can_network_connect 1
查看评论 回复
"【WordPress】CentOS6.10测试WP发送邮件失败"的相关文章
- 上一篇:Apache搭建多个站点方法详解
- 下一篇:Linux中FQDN查询及设置