$email_to = "email@mail.com";
$email_subject = "Сообщение с сайта";
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
//$_POST['name'];
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$email_message = "Имя: " . $name . "\n";
$email_message .= "Email: " . $email . "\n";
$email_message .= "Сообщение: " . $message . "\n";
mail($email_to, $email_subject, $email_message,$headers);