I am using this format for sending email and it works fine
$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
Since I want in the FROM to display the name and not the email address I change the $from to:
$from = "Site Admin <someonelse@example.com>";
But the problem is the email is not send. Any idea what seems to be the problem?
Btw I am using Mercury server.
Thanks