I had the same problem with getting php/mail to work.
I'm very inexperienced with php, but after hours I found the problem lay with my ISP. I am using PHP on their servers.
They have a specific e-mail I had to usein the From field. See the line starting:
mail($recipient, $subject, $msg, "From: server@easyspace.com");
See script below, which I'm glad to say works for me.
Hope this helps
Regards,
Donald.
<?php
if ($sender_email and $message)
{
$msg = "Sender Name:\t$sender_name\n";
$msg .= "Sender E-Mail:\t$sender_email\n";
$msg .= "Message:\t$message\n\n";
$recipient = "you@you.com";
$subject = "Order Queries";
mail($recipient, $subject, $msg, "From: server@easyspace.com");
echo "
<p>";
echo "Thank You,
$sender_name";
echo "<P align=center>Your feedback has been
sent.</P>";
echo "
<p>";
} else {
echo "
<p>";
echo "There is no email address or
no message body.";
echo "<P align=center>Please go back and make sure
you have entered an email address and a message
body</P>";
echo "
<p>";
}
?>