我剛剛遷移到新伺服器,顯然無法發送郵件。我在那裡安裝了“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