Hi there,
I have a similar to kwestberg problem. I cannot send mail neither from Windowz nor from Linux (Fedora). Unlike kwestberg's code my goes through the error checking and reports that e-mail has been sent. In fact it has not been. I have tried from the command line using sendmail and mail commands - the same. I have already posted a message on the Newbies Forum without any success. Here is my php file for your reference:
<html>
<head>
<title> Mail PHP. </title>
<body> <font face="Bookman Old Style" color="#FF0000">
</font>
<?php
$name=$_POST['name'];
$email=$_POST['email'];
$comments=$_POST['comments'];
$to="abojilov@deephavenfunds.com";
$message="$customer has just filled in your comments form. They said:\n$comments\n\nCustomer's e-mail address was: $email";
if(mail($to,"Comments From Your Site",$message,"From: $email\n")) {
echo "Thanks for your comments.";
} else {
echo "There was a problem sending the mail. Please check that you filled in the form correctly.";
}
?>
</body>
</html>
Or perhaps is just a configuration problem?
Please help!
Your help will be greatly appreciated.