All pastes #198202 Raw Edit

Mine

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