$Company = "MCS Web Solutions";
$contact_type = "quote";
$Type_Label = ($contact_type=="quote")? "Request a Free Quote" : "Get More Info on Ramps";
$Email_Label = ($contact_type=="quote")? "Free Quote Request from $Company" : "Info Request on Company";
$SendToRecipient = "info@mcswebsolutions.com";
// EMAIL FUNCTION:
function send_mail($recipient,$from,$subject,$body,$html) {
return true; // SHUTS DOWN CONTACT FORM
global $Email_Label;
//add FROM:
$headers = 'From: '. $from;
$headers .= '
Return-path:'. $from;
if($html){// if HTML email:
//specify MIME version 1.0 for HTML Email
$headers .= "\nMIME-Version: 1.0\n";
$headers .= "Content-Type: text/html; charset=ISO-8859-1\n";//
$headers .= "Content-Transfer-Encoding: base64\n";
$headers .= chunk_split(base64_encode($body));
$sentOk = mail($recipient, $subject, "", $headers); // Send HTML EMAIL
}else{// if NOT HTML email:
//specify plain text for PLAIN Email
$headers .= "Content-Type: text/plain; charset=ISO-8859-1\n";
$sentOk = mail($recipient, $subject, $body, $headers); // Send Non-HTML EMAIL
}
// echo "sentOk=" . $sentOk; // VERIFY OK
}
$response_page = ($_POST['submitok'])? 1 : 0;
if($response_page){ // IF Contact/Order form is submitted, PROCESS ORDER:
$Name = $_POST['Name'];
$Address = $_POST['Company'];
$Phone = $_POST['Phone'];
$Email = $_POST['Email'];
$CurrentSite = $_POST['CurrentSite'];
$Comments = $_POST['Comments'];
$WebSite = $_POST['WebSite'];
$Social = $_POST['Social'];
$Other = $_POST['Other'];
$N = count($WebSite);
if($N) $WebSiteOutput = "Web Site Options:";
for($i=0; $i < $N; $i++) { $WebSiteOutput .= " " . $WebSite[$i] . "
"; }
$N = count($Social);
if($N) $SocialOutput = "Social Options:";
for($i=0; $i < $N; $i++) { $SocialOutput .= " " . $Social[$i] . "
"; }
$N = count($Other);
if($N) $OtherOutput = "Other Options:";
for($i=0; $i < $N; $i++) { $OtherOutput .= " " . $Other[$i] . "
"; }
$thisEmail = "";
$thisEmail .= ($Name ? "$Name
" : "");
$thisEmail .= ($Company ? "$Company
" : "");
$thisEmail .= ($Email ? "$Email
" : "");
$thisEmail .= ($Phone ? "$Phone
" : "");
$thisEmail .= ($Comments ? "Details: $Comments
" : "");
$thisEmail .= ($WebSiteOutput ? "$WebSiteOutput
" : "");
$thisEmail .= ($SocialOutput ? "$SocialOutput
" : "");
$thisEmail .= ($OtherOutput ? "$OtherOutput
" : "");
$sendemail = 1;
if($Comments && strpos($Comments,"[url") > -1) $sendemail = 0;
$spam = (strpos("$Name $Address $Email $Comments", 'http') === false ? 0 : 1 );
if($sendemail && !$spam) send_mail($SendToRecipient,$Email,$Email_Label,$thisEmail,1);
// print "Mail " . ($sendemail ? "" : "NOT") . " sent: $Comments . " || " . strpos($Comments,"[url");
}
?>
We encourage you to look through the rest of our site to find out more about why we're one of the best web marketing companies available for those that want to make the most of the exploding medium that is the internet!
} else { ?> } ?> if($wp_campaign){ ?> }else{ ?> } ?>