PHP mail() returns ‘sh: -t: command not found’

If you ever get ‘sh: -t: command not found‘ when attempting to run the PHP’s mail() function, you probably did not set the sendmail_path variable in your php.ini

Change

; sendmail_path =

to

sendmail_path = /usr/sbin/sendmail -t -i

Leave a Reply

Your email address will not be published.