Stuff
public text v1 · immutable$to = "email@gmail.com";
$backto = "skickat.html";
if(isset($_POST['mail'])) {
$from = $_POST['mail_from'];
$subject = "Mail from contact form";
$message = "Message from: ".$_POST['mail_from']."\n\n".$_POST['message'];
$headers = "From: ".$from;
$headers .= "Subject: ".$subject;
$headers .= "Reply-To: ".$from;
$headers .= "X-Mailer: PHP/".phpversion();
mail($to, $subject, $message, $headers);
}
header("Location: ".$backto);