帮助中心

这里有最新的使用文档和教程

< 返回

宝塔关于无法使用PHP自带函数发送邮件的解决方法

2023-03-15 09:54 作者:31IDC 阅读量:352 所属分类:Linux系统

宝塔关于无法使用PHP自带函数发送邮件的解决方法

Centos6.x:
               检查sendmail是否启动:
  1. chkconfig --list | grep sendmail

               若显示为空请通过以下命令设置sendmail自动启动:
                          service sendmail start
                          chkconfig --level 2345 sendmail on

Centos7.x:
               检查sendmail是否启动:
  1. systemctl list-units --type=service|grep sendmail

               若显示为空请通过以下命令设置sendmail自动启动:

31IDC - 12 年深耕海外 IDC 高端资源