首先安装sendmail软件...
yum install sendmail
/etc/init.d/php-fpm restart
来检查下sendmail是否正常运行
/etc/init.d/sendmail status
如果显示正常运行说明已经安装成功了
设置sendmail的绝对路径
/usr/local/php/etc/php.ini 找到了sendmail_path把他修改成 sendmail_path = /usr/sbin/sendmail -t –i; 重启php-fpm进程
/etc/init.d/php-fpm restart
然后启动sendmail服务
/etc/init.d/sendmail start 设置sendmail功能开机启动
#chkconfig sendmail on