本文介绍如果修改PHP发送邮件的地址。
找到php.ini文件中的sendmail_path 修改为sendmail_path = /usr/sbin/sendmail -fadmin@amznz.com -t -i 备注: 如果您使用的是Apache,操作系统是Ubuntu的话,路径可能是:/etc/php5/apache2/php.ini。 或者可以通过命令来查找:find /etc/ -name php.ini 通过执行命令可以看到我目前的测试环境是: lsb_release -a Distributor ID: Ubuntu Description: Ubuntu 14.04.1 LTS Release: 14.04 Codename: trusty