Location: PHPKode > projects > Webify Contact Form > contactform/sendmail.php
<?PHP

foreach ($_POST as $k => $content) {
	if ($k != EMAIL && $k != SUBJECT && $k != MESSAGE && $k != QUIZ) {
		$embed = "<b>$k:<br></b>$content<hr style=\"margin-top:15px; margin-bottom:15px;\">" . "$embed";
	}
}

$_POST[MESSAGE] = preg_replace("/\n/","\n<BR>",$_POST[MESSAGE]);

$_POST[MESSAGE] = $embed . $_POST[MESSAGE];

//............................
$to="$rowxxx[ADMINEMAIL]";
$headers.= "MIME-Version: 1.0\r\n";
$headers.= "Content-type: text/html; ";
$headers.= "charset=iso-8859-1\r\n";
$headers.= "From: $_POST[EMAIL]";
$subject = "$_POST[SUBJECT]";
$body = "$_POST[MESSAGE]";

mail($to,$subject,$body,$headers);
//............................
?>

<h1>Mail Sent!</h1>
Thank you for contacting us. We will reply as soon as possible.
Return current item: Webify Contact Form