assign('send_message', "YES"); $smarty->assign('errors', $errors); if ($errors == 0) { $query = "SELECT shop_name, company_email FROM diffshop_general_settings WHERE id='1'"; $result = mysql_query($query) or die("error in query - $query - ".mysql_error()); while($row = mysql_fetch_array($result)) { $shop_name = stripslashes($row[0]); $company_email = $row[1]; } $shop_email_subject = $subject; $shop_email_description = "Name: $name
"; $shop_email_description .= "Email: $email
"; $shop_email_description .= "Message:
$message

"; $mail_header = "From: $email\n"; $mail_header .= "Reply-to: $email\n"; $mail_header .= "Content-Type: text/html\n"; $our_email = $company_email; mail($our_email, $shop_email_subject, $shop_email_description, $mail_header); } } //////////////////////////////////////////////////////////////////////////////////////////////////*\ $smarty->display('contact.tpl'); include ("close_mysql.php"); ?>