$value){ if(!in_array($key,$skip_these)){ $message .= $key.": ".stripslashes($value)."\n"; } } $headers = ""; $headers .= "Return-Path: <".$_POST["email"].">\r\n"; $headers .= "From: ".$_POST["name"]." <".$_POST["email"].">\r\n"; $headers .= "Reply-To: ".$_POST["email"]."\r\n"; $headers .= "X-Priority: 3 (Normal)"."\r\n"; $headers .= "Importance: Normal"."\r\n"; //$sent = mail("jasen@domain-studios.com", $subject_prefix.$_POST["subject"].' - Island-Wholesale.com', $message, $headers); $sent = mail($_POST["email_to"], $subject_prefix.$_POST["subject"], $message, $headers); if ($sent == false) { echo "The message could not be sent.
\n This may be due to a server configuration error or lack of a viable mail program.
\n Please check with your server administrator to see if Sendmail or a comparable program is installed.\n"; } else{ echo "

".'Your message was successfully sent.'."

"; } } $contact_emails = array( "General-".$global_vars["Company Email"] => "General Question / Comment", "Billing-".$global_vars["Billing Email"] => "Billing Question / Comment", "Orders -".$global_vars["Orders Email"] => "Order Question / Comment", ); echo '
'.$global_vars["Company Name"].'
'.$global_vars["Company Address"].'
'.$global_vars["Company City"].', '.$global_vars["Company State"].' '.$global_vars["Company Zip"].'

Email: '.$global_vars["Company Email"].'
Phone: '.$global_vars["Company Phone"].'
Fax: '.$global_vars["Company Fax"].'

Name: '.$useFormElements->makeText("name","",$name).'
Client ID: '.$useFormElements->makeText("client_id","",$client_id).'
Email: '.$useFormElements->makeText("email","").'
Regarding: '.$useFormElements->makeSelect("email_to",$contact_emails).'
Subject: '.$useFormElements->makeText("subject","").'
Your Message: '.$useFormElements->makeTextarea("message").'
  '.$useFormElements->makeButton("submit","submit","Send My Message").'
'; include_once("includes/inc.bottom.php"); ?>