关于php 利用sendmail 发送邮件的配置
[root@weicot.com ~]# vi /usr/local/php/lib/php.ini [mail function] SMTP = localhost smtp_port = 25 sendmail_path = '/usr/sbin/sendmail.sendmail -t -i' mail.add_x_header = O mail.log =/tmp/mail.log
关于 由xxx@xxx.com代发 解决办法
在php.ini里面找到
sendmail_path = /usr/sbin/sendmail -t -i
改成
sendmail_path = /usr/sbin/sendmail -t -i -f xxxx@xxxx.com
然后
restart httpd
或者重启php 进程