<?php
$mailTo = "
[email protected]";
$mailFrom = $_POST['emailFrom'];
$subject = $_POST['subject'];
$message = $_POST['message'];
$headers = "From:" . $_POST['name'];
header("Location: index.html#contact");
mail($mailTo, $subject, $message, $mailFrom, $headers);
?>
this is the code I used...