Mine
public text v1 · immutable<?
$to = "email@gmail.com";
$backto = "skickat.html";
if(isset($_POST['mail'])) {
$to = 'nobody@example.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
}
header("Location: ".$backto);
?>