PHP mail() not working?

getting “sh: -t: command not found” when testing using the cli?
what you have is a missing devel package!!!!

In my case sendmail-devel was missing, you’d think the configure script would alert on this but alas no, devel pack installed and one recompile later and the issue is solved.

3 Responses to “php mail() sh: -t command not found”
  1. Hi, I have exactly that error on my apache error.log but I’m working with exim4 not with sendmail

    Some idea?

  2. I’ve had a quick look around,

    One work around to try is to create a symbolic link.

    ln -s /path/to/exim /usr/bin/sendmail

    I have not tested this though as I do not use exim, let me know how you get on.

    Cheers

    Buzz

  3. Thanks this worked for me!

Leave a Reply

Creative Commons License