Code:
<?php
if (isset($_POST['submit'])) {
$name = $_POST['name'];
$email = $_POST['email'];
$message = $_POST['message'];
$mailTo = "MYMAIL@hotmail.com";
$headers = "From: ".$email;
$txt = "You have received an e-mail from ".$email.".\n\n".$name."\n\n".message;
mail($mailTo, $name, $txt);
header("Location: mailsend.php");
}
How can I make this email to appear on the top instead of my servers email address?
The $headers doesnt seem to work?
whenever I change the code to mail($mailTo, $name, $txt, $headers); I do not receive any email at all.