探索,發現,愛好、學習,記錄,分享。
學海無涯,天涯若比鄰,三人行,必有我師。

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

Centos6.x:

检查sendmail是否启动: 

chkconfig –list | grep sendmail

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

service sendmail start

chkconfig –level 2345 sendmail on

Centos7.x:

检查sendmail是否启动:

systemctl list-units –type=service|grep sendmail

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

systemctl start sendmail.service

systemctl enable sendmail.service

版權聲明:本文采用知識共享 署名4.0國際許可協議 [BY-NC-SA] 進行授權
轉載事宜:如需轉載需徵得應允,轉載必須注明來源於本站的信息。
文章名称:《关于宝塔主机面板无法使用PHP自带函数发送邮件的解决方法》
文章链接:https://www.thefreesky.com/blog/25340.html
本站資源僅供個人學習交流,請於下載後24小時內刪除,不允許用於商業用途,否則法律問題自行承擔。

評論 抢沙发