$recaptcha = [ 'key' => '6LdTvpkUAAAAAHp98Bqib41qliHiIYHJLEEzrgmS', 'secret' => '6LdTvpkUAAAAAC400xiqgRD7Gxgl69zhQeRWP3b1', ]; // if($_POST) // { // $errors = []; // // Required fields // $required = ['name', 'email', 'message']; // foreach($required as $reqfield) { // if(!isset($_POST[$reqfield]) || strlen($_POST[$reqfield]) < 1) { // $errors[$reqfield] = 'fielderror'; // } // } // $data = [ // 'secret' => $recaptcha['secret'], // 'response' => $_POST['g-recaptcha-response'], // ]; // $curl = curl_init('https://www.google.com/recaptcha/api/siteverify'); // curl_setopt($curl, CURLOPT_POST, true); // curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data)); // curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false); // curl_setopt($curl, CURLOPT_RETURNTRANSFER, true); // $response = curl_exec($curl); // if($response['success']) { // if(empty($errors)) // { // $html = "
'.$_POST['name'].' has sent an enquiry from the PCT website.
'; // $html .= 'Name: '.$_POST['name'].'
'; // $html .= 'Email: '.$_POST['email'].'
'; // $html .= 'Phone: '.$_POST['phone'].'
'; // $html .= 'Company: '.$_POST['company'].'
'; // $html .= 'Message: '.nl2br($_POST['message']).'
'; // $html .= ""; // sendmail('hello+log@weboptic.com', 'Precision Carbide Tools Enquiry', $html, 'Precision Carbide', 'mike@precision-carbide.com', $_POST['email'], $_POST['name']); // sendmail('sales@precision-carbide.com', 'Precision Carbide Tools Enquiry', $html, 'Precision Carbide', 'mike@precision-carbide.com', $_POST['email'], $_POST['name']); // sendmail('mike@precision-carbide.com', 'Precision Carbide Tools Enquiry', $html, 'Precision Carbide', 'mike@precision-carbide.com', $_POST['email'], $_POST['name']); // $msg = 'Thank you for your enquiry. We\'ll be in touch soon.
'; // } else { // $msg = 'Please make sure you complete all required fields.
'; // } // } else { // $msg = 'Please make sure to complete the CAPTCHA field'; // } // } // function sendmail($email_to, $subject, $message, $name_from, $email_from, $replytoemail = false, $replytoname = false) // { // require_once($_SERVER['DOCUMENT_ROOT'] . '/_includes/_functions/phpmailer.class.php'); // require_once($_SERVER['DOCUMENT_ROOT'] . '/_includes/_functions/phpmailer/class.smtp.php'); // $email = new PHPMailer(true); // $email->isSMTP(); // $email->isHTML(true); // $email->CharSet = 'UTF-8'; // $email->Host = "mail.smtp2go.com"; // $email->Port = 587; // $email->SMTPAuth = true; // $email->Username = "web_optic"; // $email->Password = "W3b0pt1c"; // $email->setFrom($email_from, str_replace('&', '&', $name_from)); // if($replytoemail && $replytoname) { // $email->AddReplyTo($replytoemail, $replytoname); // } // $email->addAddress($email_to); // $email->Body = $message; // $email->Subject = $subject; // // return $email->send(); // } ?>
Established for over 50 years, Precision Carbide Tools Ltd has developed a reputation for quality products and services. We are constantly reviewing and expanding our product range to enable us to keep in touch with present day technology and advances in cutting tool geometries and coatings.
Precision Carbide Tools offers a comprehensive manufacturing, regrind and refurb service of all carbide cutting tools tailored to the aerospace, automotive and general engineering industries.
Approved Distributor for
Get in touch for more information regarding our Tool Cutting Services
Precision Carbide Tools Ltd
Unit 2 Cedar Court
Halesfield 17
Telford
TF7 4PF
Tel: 01952 583686
Fax: 01952 588703
Email: sales@precision-carbide.com