I can send emails from the command line using sendmail,
I can call a php script ( php -f sendmail.php ) from the command line and the mail sends successfully,
but if I call the exact same script from the website ( https://www.bradfordjam.org.uk/sendmail.php ) I get a bool false and no email.
searching phpinfo() at https://www.bradfordjam.org.uk/test.php gives me:
sendmail_path /usr/sbin/sendmail -t -i /usr/sbin/sendmail -t -i
which doesn't work. Calling
php -i | grep sendmail
from the command line php gives me
sendmail_path => /usr/sbin/sendmail -t -i => /usr/sbin/sendmail -t -i
which does.
Genuinely stumped. Any idea? Thanks.