Friday, March 12, 2010






if($content)
{
$from = $_POST["from"]; //gets the name of the person
$email = $_POST["email"]; //gets their email address
$content = "This message is from $from whose email address is $email.\r\n-----------\r\n "; //little intro of your email

message that you will see in your inbox
$content = $content . $_POST["content"]; //concatenates the intro with the real content
$content = wordwrap($content, 70); //message must be no longer than 70 characters per line (PHP rule), so we wrap it
mail('bsi@cmc.org', 'Backcountry Experience Report', $content)
echo "Your message has been sent. Thank you for helping to protect the human-powered backcountry experience."
}
?>

Name:


Email:


Message:



No comments: