<?php
if(isset($_POST['submit'])) {
$to = "emailgoeshere";
$subject = "subjecthere";
$name_field = $_POST['name'];
$email_field = $_POST['email'];
$message =
$_POST['message'];
$body = "From: $name_field\n E-Mail:
$email_field\n Message:\n $message";
echo "Your message has been
sent. We will contact you shortly";
mail($to, $subject, $body);
} else {
echo "blarg!";
}
?>
Warning: phpinfo() has been disabled for security reasons in
/home/ecohome/public_html/test/info.php on line 2
Warning: mail() expects at least 3 parameters, 0 given in
/home/ecohome/public_html/test/info.php on line 3