最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
php函数mail()报Could not instantiate mail function.错误解决
时间:2022-06-24 22:03:03 编辑:袖梨 来源:一聚教程网
网上有很多朋友用phpmailer组件发送邮件提示:Could not instantiate mail function.错误,解决方案少之用少,原因是服务器没有安装sendmail组件,使用yum进行安装:
yum install sendmail
/etc/init.d/sendmail start
注意:如果sendmail启动缓慢,请将hostname加入到/etc/hosts里面
配置/usr/local/php/etc/php.ini,填写sendmail绝对路径:
vim /usr/local/php/etc/php.ini
sendmail_path = /usr/sbin/sendmail -t -i
:wq!
/etc/init.d/php-fpm restart
相关文章
- 致命公司怎么看监控 监控台使用方法 12-07
- 神秘世界2永恒国度等级速刷攻略 在哪刷经验 12-07
- 神秘世界2永恒国度英雄选择推荐攻略 12-07
- 赛博朋克2077 2.1控制台分享 12-07
- tevi白雾森林100%全收集地图分享 12-07
- 血之诅咒新手攻略 怎么玩 12-07