C'est la vie.
Loading search...

Mail Form



Anonymous Mail Form Please enter a valid name

'; }elseif(!eregi("^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$", $_POST['email']) && strlen($_POST['email']) > 0){ echo '

Please enter a valid email address

'; }elseif(!preg_match("/[a-z]/",$_POST['message'])){ echo '

Please fill out the message field appropriately. ALL CAPS is not allowed – we don\'t appreciate being shouted at and neither would you.

'; }else{ $to = "AwakeAndDrink@yahoo.com"; $from = "AwakeAndDrink@yahoo.com"; $subject = "Awake and Drink.org"; $message = "This is an email from my anonymous php mail script." . "\n\n Name: " . $_POST['name'] . "\n Email (optional): " . $_POST['email'] . "\n Message: " . $_POST['message'] . "."; $message = wordwrap($message, 70); mail($to, $subject, $message, $from); echo "

Thank you for your message, " . $_POST['name'] . ". If you left us an address, we will get back to you as soon as possible. If you didn't leave us an address, we'll take your words into consideration."; } }else{ ?>