"") && ($_POST['ville'] <> "") && ($_POST['telephone'] <> "") && (empty($_POST['phone'])) && (isset($_POST['g-recaptcha-response']))){ $nom = $_POST['nom']; $ville = $_POST['ville']; $telephone = $_POST['telephone']; $phone = $_POST['phone']; $courriel = $_POST['courriel']; $projet = $_POST['projet']; $materiaux = $_POST['materiaux']; $text = $_POST['text']; $captcha = $_POST['g-recaptcha-response']; $to = "info@isomax.ca"; //$to = "mtessier@ymarketing.ca"; $toName = "Nicole Legault"; $subject = "Estimation isulation - Isolation Isomax"; //$this->curError = $this::ERROR_FORGOT_FR; $message =" $subject

$subject

Hi,

Name : $nom

City: $ville

Telephone : $telephone

Email : $courriel

"; if ($projet <> ""){ $message .= "

What kind of work are you looking for ? : $projet

"; } if ($materiaux <> ""){ $message .= "

What kind of materials are you looking for ? : $materiaux

"; } $message .= "

Message : $text

Thanks

"; $secretKey = "6Lf-qQUTAAAAAOJVXSPURKOLyUkCoTRw4Rwk1j91"; $ip = $_SERVER['REMOTE_ADDR']; $response=file_get_contents("https://www.google.com/recaptcha/api/siteverify?secret=".$secretKey."&response=".$captcha."&remoteip=".$ip); $responseKeys = json_decode($response); $headers = 'MIME-Version: 1.0' . "\n"; $headers .= 'Content-type: text/html; charset="utf-8"'. "\n"; $headers .= 'Content-Transfer-Encoding: 7bit \n'; $headers .= 'To:'. $toName ."<". $to ."> \n"; $headers .= 'From: Estimation isulation '. "\n"; $headers .= 'BCC:Martine'; $headers .= 'Date: ' . date('r', $_SERVER['REQUEST_TIME']) .' \n'; $headers .= 'Message-ID: <' . $_SERVER['REQUEST_TIME'] . md5($_SERVER['REQUEST_TIME']) . '@' . $_SERVER['SERVER_NAME'] . '> \n'; $headers .= 'X-Mailer: PHP v' . phpversion() .' \n'; $headers .= 'X-Originating-IP: ' . $_SERVER['SERVER_ADDR'] .' \n'; $headers .= "Sensitivity: Personal \n"; $headers .= "X-Spam-Flag: NO \n"; // Mail it if($responseKeys->success){ $success = mail($to, $subject, $message, $headers); if($success){ $error = "Your request has been sent successfully."; } } else { $error = "There seems to be a problem with the recaptcha validation. Try Again."; } } else { $error = "You must fill in fields with an asterisk."; } } ?> Isolation résidentielle, commerciale et industrielle | Isolation Isomax
Logo Isolation Isomax

Your solution in insulation

Insulation estimation

Insulation estimation

Following receipt of this form , our experts will be happy to contact you within 24 hours to schedule an appointment with you to get all the information necessary for the preparation of a tender.

Isolation commerciale

Name *

City *

Telephone *

Telephone

Email

What kind of work are you looking for ?

What kind of materials are you looking for ?

Message

Isolation Isomax

450.454.9703 | 1 888.454.9703

Isolation Isomax inc

24, rue Patenaude

Saint-Isidore (Québec)

J0L 2A0

Isolation Isomax