Reputation: 1044
I'm trying to use the mail function in PHP, and it simply yeilds this mysterious error in the error log:
sh: 1: -t: not found
I have both sendmail and mailutils installed, as well as set the sendmail path in php.ini.
I've looked at this, and I tried the suggested fixes there with no change.
What could be causing this issue?
Upvotes: 4
Views: 1913
Reputation: 129
What is the sendmail_path set to in php.ini? It should look something like this if you are on a Unix system.
sendmail_path = /usr/sbin/sendmail -t -i
It sounds like the "/usr/sbin/sendmail" piece is missing.
Upvotes: 6