try this small PHP test file.
Make sure your change the
recipient@example.com to an email address that is not on your system!
Code:
<?php
$to = "recipient@example.com";
$subject = "Hi!";
$body = "Hi,\n\nHow are you?";
if (mail($to, $subject, $body)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>
When you have tested the above PHP script, post the last 10 to 20 lines from your mail.log file (The mail.log file is in: "/var/log")