<?php
$name = $_POST['name'];
$to = '*****@gmail.com';
$subject = 'Письмо от клиента';
$messege = $_POST['message'];
$phone = $_POST['phone'];
$email = $_POST['email'];
$message = $name. "\r\n" .$email. "\r\n" .$phone. "\r\n" .$messege;
$headers = 'From: ********@gmail.com' . "\r\n" .
'Reply-To: ***********@gmail.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>