I have installed apache with PHP Version 5.3.3-7+squeeze14 and I can't get mail to work, this is the code i'm using:
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 1);
echo 'I am : ' . `whoami`;
$result = mail('*****','Testing 1 2 3','This is a test.');
echo '<hr>Result was: ' . ( $result === FALSE ? 'FALSE' : 'TRUE') . $result;
echo '<hr>';
echo phpinfo();
this is response I get:
I am : www-data
Result was: FALSE
In my php.ini i have edited two lines, this is how hey look right now:
sendmail_path = /usr/sbin/sendmail -t -i -f something@****.lt
sendmail_from = something@****.lt
/var/log/mail.log is completely empty even thou I have been trying various things for over an hour now.
I'm fairly new to linux so i'm pretty sure that I'm missing something obvious just can't seem to find in...
EDIT Forgot to mention that i do restart apache every time i make some changes to my configuration, and I'm using Debian 6.0