";
// mail function
mail("$_POST[to]" , "$_POST[subject]", $_POST[message], $headers);
// success message
// if you receive a php error, make sure your server is set up to send email
print "Su correo electronico ha sido enviado a $_POST[to] de $_POST[from]";
exit;
}
} else {
$errormessage = "The email address you entered does not appear to be valid. ";
}
} else {
$errormessage = "You have left some required fields in the form blank. Please fill in the form completely. ";
}
}
?>
|