关于我们

质量为本、客户为根、勇于拼搏、务实创新

< 返回新闻公共列表

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

发布时间:2023/3/15 12:15:44
香港云服务器

香港云服务器使用宝塔关于无法使用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自动启动: