Location: PHPKode > scripts > MailForm > mailform/mail.php
<?php
// CUSTOMIZE

$myemail='hide@address.com'; // Replace hide@address.com with YOUR EMAIL ADDRESS

// DO NOT EDIT BELOW THIS LINE //
if (isset($_POST['contact'])){
function clean($text) {
$text = strtolower($text);
$text=str_replace("\n","",$text);
$text=str_replace("%","",$text);
$text=str_replace("<","",$text);
$text=str_replace(">","",$text);
$text=str_replace("\r","",$text);
$text=str_replace("c:","",$text);
return $text;
}
$name = clean($_POST['name']);
$phone = clean($_POST['phone']);
$email = clean($_POST['email']);
$msg = clean($_POST['msg']);
$msg = stripslashes($msg);
// SEND OUT THE MAIL
$mailee = $myemail;
$mailor = "From: $email";
$subject= "WEB SITE CONTACT";
$body = "Name: $name\nPhone: $phone\nE-Mail: $email\nMESSAGE: $msg\n\n";
mail ($mailee, $subject, $body, $mailor);
}else{
	exit();
}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
 <head>
  <title> Contact Us </title>
<style type="text/css" media=screen>
<!--
fieldset { 
width: 500px;
border: 1px solid #e2e2e2;
padding-left: 5px;
}
-->
</STYLE>
 </head>

 <body bgcolor="#ffffff" text="#000000" link="#0000ff" vlink="#0000ff" alink="#0000ff">
<h2>Message Sent!</h2>
<p><a href="/">Back To Main Page</a></p>
<p><font size="small">Webmail Form Powered by <a href="http://www.bluewavedata.com" title="Custom Web Applications">Blue Wave Data LLC</a></font><br />
&copy 2008 Blue Wave Data, LLC</p>
 </body>
</html>
Return current item: MailForm