我刚刚迁移到新服务器,显然无法发送邮件。我在那里安装了“ipb board”,每次发送邮件时,我都会在 error_log 中收到以下内容
sh: -t: command not found
ls -l /usr/sbin/sendmail
lrwxrwxrwx 1 root root 21 Dec 19 22:57 /usr/sbin/sendmail -> /etc/alternatives/mta
rpm -qa | grep send
sendmail-milter-8.14.4-8.el6.x86_64
sendmail-8.14.4-8.el6.x86_64
sendmail-cf-8.14.4-8.el6.noarch
答案1
为了解决这个问题,我添加了sendmail_path = /usr/sbin/sendmail -t -i
php.ini