# 安装 sendmail yum install sendmail # 启动sendmail systemctl start sendmail # 配置php.ini # 找到 sendmail_path sendmail_path = /usr/sbin/sendmail -t -i # 保存php.ini 重启php