$name = $HTTP_POST_VARS["name"];
$emailfrom = $HTTP_POST_VARS["emailfrom"];
$company = $HTTP_POST_VARS["company"];
$tel = $HTTP_POST_VARS["tel"];
$c1 = $HTTP_POST_VARS["c1"];
$c2 = $HTTP_POST_VARS["c2"];
$c3 = $HTTP_POST_VARS["c3"];
$c4 = $HTTP_POST_VARS["c4"];
$c5 = $HTTP_POST_VARS["c5"];
$comments = $HTTP_POST_VARS["comments"];
//$email = "yds@indo.net.id";
$email = "danielle@yakindowebdesigns.com";
$emailfromaddr = "$emailfrom";
$emailsubject = "Website Contact Us form submission from $name";
// BEGINNING OF EMAIL BODY -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$emailbody = '
| Name |
'.$name.' |
| Company/Organization |
'.$company.' |
| Email |
'.$emailfrom.' |
| Tel. |
'.$tel.' |
I would like someone to contact me about:
| [ '.$c1.' ] |
Becoming a Member of Zonta |
| [ '.$c2.' ] |
Applying for a Local Service Grant |
| [ '.$c3.' ] |
Applying for the local Zonta scholarship |
| [ '.$c4.' ] |
Registering for Illusions/Deceptions in October 2012 |
| [ '.$c5.' ] |
Purchasing tickets for the Murder Mystery Dinner event |
Additional Inquiries or Comments:
'.$comments.'
';
// ENDING OF EMAIL BODY -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
$emailheaders = "To: $email\n";
$emailheaders .= "From: $name <$emailfromaddr>\n";
$emailheaders .= "Reply-To: $emailfromaddr\n";
// $emailheaders .= "Bcc: danielle@yakindowebdesigns.com\n";
$emailheaders .= "Bcc: yakimazonta@gmail.com\n";
$emailheaders .= "X-Mailer: PHP/" . phpversion() . "\n";
//$emailheaders .= "X-Sender-IP: $REMOTE_ADDR\n";
$emailheaders .= "MIME-Version: 1.0\n";
$emailheaders .= "Content-type: text/html";
mail($email, $emailsubject, $emailbody, $emailheaders);
?>