\n\n
\n ";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'MooseLoose Contact<>' . "\r\n";
$headers = "From: ";
if(mail($to, $subject, $message, $headers)){echo "<p></p> ";} else {echo "An error has occured and your message has not been sent. Please contact us at ";};
?>
####################################################
If you have a client field called Email, you can include the following to give the client a return answer. If you don't, don't include this or anything below. Either way, delete this green stuff.
####################################################
<?php
$to = "$Email";
$subject = "Thanks for your submission on ";
$from = "";
$message ="Thank you for your submission on .
\n ";
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
$headers .= 'MooseLoose Contact<>' . "\r\n";
$headers = "From: ";
if(mail($to, $subject, $message, $headers)){echo "";} else {echo "";};
?>
VALIDATING JAVASCRIPT. PUT IN HEAD IF YOU HAVE AN $Email
<script>
function MooseMail() {
var x = document.forms["moose"]["Email"].value;
var atpos = x.indexOf("@");
var dotpos = x.lastIndexOf(".");
if (atpos< 1 || dotpos<atpos+2 || dotpos+2>=x.length) {
alert("Not a valid e-mail address");
return false;
}
}
</script>