All pastes #122510 Raw Edit

Stuff

public php v1 · immutable
·published 2006-08-08 18:47 UTC
rendered paste body
	$from_name = $_POST['name']; 	$from_address = $_POST['mail']; 		$to_name = 'Your name'; 	$to_address = 'your address';		$subject = 'Subject'; 	$message = 'BLEH';		$headers = "MIME-Version: 1.0\n"; 	$headers .= "Content-type: text/plain; charset=iso-8859-1\n"; 	$headers .= "From: ".$from_name." <".$from_address.">\n"; 	$headers .= "Reply-To: ".$from_name." <".$from_address.">\n"; 	$headers .= "To: ".$to_name." <".$to_address.">\n"; // 1 and High = High priority, delete these lines for a normal mail	$headers .= "X-Priority: 1\n";	$headers .= "X-MSMail-Priority: High\n";		if (mail($to_address, $subject, $message, $headers)) 		echo 'Mail sent.';	else 		echo 'Error.';