Contact us
Please enter your information'; $fullname = ''; $phonenumber = ''; $emailaddress = ''; $locationcity = $locationcitydefault; $comments = ''; //Thank you for visiting ColumbusGVTeam.com. Susi & Dave are eager to hear from you!
$preamble = 'Participate
Since we are not currently planning any Global Village trips, please refer to Habitat\'s web site. Of course, we are always willing to discuss everything, so also feel free to send us your contact information by using the form below.
' .
// 'Donate
To make a donation in support of our next Global Village mission, please visit our donations page at Habitat for Humanity International.
' .
'Donate
To make a donation in support of the Global Village program, please visit the donation page at Habitat for Humanity International.
' .
'Question or Comment
Please use the form below to send us your questions, comments and suggestions.
' .
'
Please remove characters other than a-z, A-Z, 0-9, _, %, and -."; $OkToSend = false; } elseif ($fullname == '' && $phonenumber == '' && $emailaddress == '' && $comments == '') { $msg = 'Your message was not sent because it was empty.
Please try again'; $OkToSend = false; } elseif ($emailaddress != '' && !filter_var($emailaddress, FILTER_VALIDATE_EMAIL)) { $msg = 'Your message was not sent because the email address is not valid.
Please correct your email address or else remove it.'; $OkToSend = false; } elseif ($phonenumber != '' && !is_valid_phone_number($phonenumber) ) { $msg = 'Your message was not sent because the telephone number is not valid.
Please correct your telephone number or else remove it.
(Note: For non-USA numbers, start with a plus sign (+).)'; $OkToSend = false; } } if ($OkToSend){ // Here is where we send the email // First format the data fields if ($IsSpam) { // If it is spam, direct it to an alternate mailbox; rest is same, so spammers think their message was sent $ToEmailAddress = 'Dave2.B.Ohio@gmail.com'; $ToEmailName = 'Dave\'s Spam Account'; } else { // Here is where we put in the email address that will receive the message $ToEmailAddress = 'DLBezaire@gmail.com'; $ToEmailName = 'Dave Bezaire'; } $EmailSubject = 'Message from ColumbusGVTeam.com'; // $mailheader = htmlspecialchars("To: $ToEmailName <$ToEmailAddress>").PHP_EOL; $mailheader = "From: $emailaddress".PHP_EOL; // $mailheader .= htmlspecialchars("From: $fullname <$emailaddress>").PHP_EOL; $mailheader .= 'Reply-To: '.$emailaddress.PHP_EOL; // $mailheader .= 'Reply-To: '.$fullname.' <'.$emailaddress.'>'.PHP_EOL; $mailheader .= 'Content-type: text/html; charset=iso-8859-1'.PHP_EOL; $MESSAGE_BODY = "Name: ".$fullname."
"; $MESSAGE_BODY .= "Telephone: ".$phonenumber."
"; $MESSAGE_BODY .= "Email: ".$emailaddress."
"; $MESSAGE_BODY .= "Comments:
".nl2br($comments)."
"; // Debug statements // echo ("Your message was sent to: $ToEmailAddress
with subject: $EmailSubject.
It read as follows:
"); // echo $MESSAGE_BODY; // echo ("
The email headers for the message were:
"); // echo nl2br($mailheader); // End of Debug statements if (!mail($ToEmailAddress, $EmailSubject, $MESSAGE_BODY, $mailheader)) { // This should never occur! echo ("Message failed to send for an unknown reason.
Please use the back button to return to the form and try again."); } else { // Here is where we confirm send to user and thank them echo '
'.date('F j, Y').'
', ($fullname != '') ? "Dear $fullname,
" : "Dear Visitor,
", 'Your message has been sent to our e-mail.
', 'Thank you for visiting the Columbus GV Team site. We really appreciate receiving your comments and questions!
', 'Susi & Dave
', ''; } } else { // Form output contains php variables to keep user's input for error correction and // and to send user feedback ?>The hope of a secure and livable world lies with the disciplined noncomformists who are dedicated to justice, peace and brotherhood.
-Martin Luther King, Jr.