All pastes #198182 Raw Edit

Stuff

public text v1 · immutable
#198182 ·published 2006-10-11 20:28 UTC
rendered paste body
$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);