verifyResponse( $_SERVER["REMOTE_ADDR"], $_POST["g-recaptcha-response"] ); } if ($response != null && $response->success) { */ if(1){ $sql_contact="INSERT INTO `".$DB_PREFIX."_sell` ( `id` , `cid` , `sid` , `pid` , `first_name` , `last_name` , `add` , `city` , `state` , `country` , `zip` , `email` , `phone` , `company` , `extra` , `details` , `ts` ) VALUES (NULL , '$cid', '$sid', '$pid', '$first_name', '$last_name', '$add', '$city', '$state', '$country', '$zip', '$email', '$phone', '$company', '$extra', '$details', '$ts')"; $rs_contact=execute_query($sql_contact); $f='success'; ///////////////////////////////////////// $subject='RACK FOR SALE - SELL'; $from='From:Rackforsale.com'; $content= '
SELL RACK
Product '.get_product_name($_REQUEST[pid]).'  
Category '. get_category_name($_REQUEST[cid]).'  
Sub Category '. get_category_name($_REQUEST[sid]).'  
 
First Name '.$_REQUEST[first_name].'  
Last Name '.$_REQUEST[last_name].'  
Company Name '.$_REQUEST[company].'  
Phone '.$_REQUEST[phone].'  
Street Address '.$_REQUEST[add].'  
City '.$_REQUEST[city].'  
Province/State '.$_REQUEST[state].'  
Postal Code / Zip Code '.$_REQUEST[zip].'  
Country '.$_REQUEST[country].'  
Email '.$_REQUEST[email].'  
Details '.nl2br($_REQUEST[details]).'  
Date Sent '.date("d M Y", $ts).'  
'; /////////////////EMAIL //////////////////////// $subject='Rack For Sale Contact Us'; $from='From: info@rack.ca'; $content= '
RACK FOR SALE CONTACT US
Product Required '.get_product_name($_REQUEST[pid]).'  
Name '.$_REQUEST[first_name].".".$_REQUEST[last_name].'  
Company Name '.$_REQUEST[company].'  
Phone '.$_REQUEST[phone].'  
Street Address '.$_REQUEST[add].'  
City '.$_REQUEST[city].'  
Province/State '.$_REQUEST[state].'  
Postal Code / Zip Code '.$_REQUEST[zip].'  
Country '.$_REQUEST[country].'  
Email '.$_REQUEST[email].'  
Message '.nl2br($_REQUEST[details]).'  
Date Sent '.date("d M Y", $ts).'  
'; $headers="MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=ISO-8859-1\r\n"; $headers .= $from . "\r\n"; $mail_flag=mail("info@rack.ca",$subject,$content,$headers); //print $setting_a['contact_email']."
.......
".$subject."
.......
".$content; //$mail_flag=mail('prasunkumar80@gmail.com',$subject,$content,$headers); /////////////////EMAIL ENDS //////////////////////// } else { $captcha_msg = $resp->error; ?>
 

We Buy Used Rack!
Thanks For The Selling Information.
We will get back to you soon.
rackforsale.com
We Buy Used Rack!