I can send an email through the terminal command ssmtp just fine but I cant send an email through PHP with the mail() function. I have configured it to do so correctly (afaik) through php.ini.
sendmail_path = "/usr/sbin/ssmtp -t -i"
Is my sendmail path. Still not working though. I know the ssmtp command itself works just fine, just not through PHP. It doesnt give any errors or anything.
mail("email@example.com", "Test", "Testing blah");
Is the code im using in PHP. Im using PHP5 and Apache 2. I have tried restarting the Apache 2 server.
Any ideas? Im using the right config file as I got PHP to echo out the directory to the config file. Thanks!