I always get this error: Warning: mail() [function.mail]: Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /home1/fabiank/public_html/test.php on line 5
<?php
$to = "email@mail.com";
$message = "This is a test!";
$subject = "Test Mail";
if (mail($to, $subject, $message)) {
echo("message sent!");
} else {
echo("message not sent!");
}
?>