piccolo esempio di mail in php, ovviamente la body è da formattare anche in html se vuoi.
Codice PHP:
<?php
$headers = "MIME-Version: 1.0\r\n";
$headers.="Content-type: text/html; charset=iso-8859-1\r\n";
$headers.="From: example <example@from.com>\r\n";
$name = $_POST['name'];
$email = $_POST['email'];
$phone = $_POST['phone'];
$message = $_POST['message'];
$to = "mario@rossi.it";
$subject = "Prenotazione appuntamento";
$body = $name.$email.$phone.$message;
if (mail($to, $subject, $body, $headers)) {
echo"Thank You!";
} else {
die("Error!");
}