isEmpty("name", "Please enter your name."); $fv->isEmailAddress("email", "Please enter a valid email address."); $fv->isEmpty("message", "Please enter a message."); if(!$fv->isError()) { foreach($_POST as $key => $value) ${$key} = htmlspecialchars(stripslashes($value)); // Instanciate PHPMailer Class $mail = new PHPMailer(); if( array_key_exists('SMTP_HOST',$_CMS) && !empty($_CMS['SMTP_HOST']) ) { $mail->IsSMTP(); $mail->Host = $_CMS['SMTP_HOST']; if( array_key_exists('SMTP_USER',$_CMS) && !empty($_CMS['SMTP_USER']) ) { $mail->SMTPAuth = true; $mail->Username = $_CMS['SMTP_USER']; $mail->Password = $_CMS['SMTP_PASS']; } } else { $mail->IsMail(); } $mail->From = $_CMS['SITE_OWNER_EMAIL']; $mail->FromName = $name; $mail->IsHTML( true ); $mail->Subject = $_CMS['SITE_NAME'].' - Feedback'; $mail->AddAddress('dboyd@allisonabrasives.com', $_CMS['SITE_NAME']); $mail->AddAddress('jboitnott@allisonabrasives.com', $_CMS['SITE_NAME']); $mail->AddAddress('sales@allisonabrasives.com', $_CMS['SITE_NAME']); $mail->Body = "From: ".$name." (".$email.")\n

\n".nl2br($message); $mail->AltBody = ereg_replace("<[^>]+>", "", $mail->Body); $mail->Send(); header("Location: ".$_SERVER['PHP_SELF']."?was_sent=yes"); exit; } } $page_name = "contact_us.php"; $page_title = "Contact Us"; $result = $SQLAuth->Query("SELECT page_id FROM page_editor WHERE (page_name='".$page_name."') LIMIT 1", __FILE__, __LINE__); list($page_id) = mysql_fetch_row($result); $result = $SQLAuth->Query("SELECT `last_update`,`parent_id`,`page_title`,`header_title`,`meta_keywords`,`meta_description`,`page_name`,`robots_index`,`robots_follow`,`is_active_flag`,`display` FROM `page_editor` WHERE (`page_id`='".$page_id."') LIMIT 1", __FILE__, __LINE__); if( $row = mysql_fetch_assoc($result) ) { foreach($row as $key => $value) ${$key} = htmlspecialchars($value); } include("header.php"); $header_title = !empty($header_title) ? $header_title : $page_title; ?>

Query($query, __FILE__, __LINE__); while($row=mysql_fetch_assoc($result)) { echo $row["content"]; } } ?> $value) ${$key} = htmlspecialchars(stripslashes($value)); } // See if there was an error, if there was, display to the user. $fv->showErrors(); if( $_REQUEST['was_sent'] != 'yes' ) { ?>

Please use the form to contact us via our website:

* Name:
* Email:
* Message:
 
Your message has been sent. Thank you.