'; } } if ( isset($_POST['societe']) and $_POST['societe']!="") { $societe = $_POST['societe']; } else $reponse = -1; if ( isset($_POST['nom']) and $_POST['nom']!="") { $nom = $_POST['nom']; } else $reponse = -1; if ( isset($_POST['fonction']) and $_POST['fonction']!="") { $fonction = $_POST['fonction']; } if ( isset($_POST['dep']) and $_POST['dep']!="") { $dep = $_POST['dep']; } else $reponse = -1; if ( isset($_POST['ville']) and $_POST['ville']!="") { $ville = $_POST['ville']; } if ( isset($_POST['tel']) and $_POST['tel']!="") { $tel = $_POST['tel']; } else $reponse = -1; if ( isset($_POST['email']) and $_POST['email']!="") { $email = $_POST['email']; } else $reponse = -1; if ( isset($_POST['message']) and $_POST['message']!="") { $message = $_POST['message']; } else $reponse = -1; if ( $reponse == 0) { $headers = 'MIME-Version: 1.0' . "\r\n"; $headers = "From: Tallineau Emballage \n"; $headers .= 'Content-type: text/html; charset=utf-8' . "\r\n"; $msg="DEMANDE CONCERNANT
".$demande."

".$societe."
M ou Mme ".$nom."
".$fonction."

".$ville." (".$dep.")"."

Tel. : ".$tel."
".$email."

MESSAGE
".$message; $msg = str_replace("&","&",$msg); $msg = str_replace(""","'",$msg); $msg = str_replace("'","'",$msg); //$msg = str_replace("\n","
",$msg); $msg = str_replace("\"","'",$msg); $msg = str_replace("\'","'",$msg); $msg = str_replace("é","e",$msg); $msg = str_replace("è","e",$msg); $msg = str_replace("à","a",$msg); $msg = str_replace("ù","u",$msg); $msg = str_replace("ç","c",$msg); $msg = str_replace("î","i",$msg); $msg = str_replace("ï","i",$msg); if(mail('info@tallineau-emballage.fr', 'Message du site Tallineau Emballage', $msg, $headers)){ $reponse = 1; $msg="Nous vous confirmons la prise en compte de votre demande,
et vous remercions de votre visite sur notre site.

Nous mettons tout en oeuvre pour vous apporter une réponse dans les meilleurs délais.

L'équipe Tallineau Emballage."; mail($email, 'Votre demande d\'information', $msg, $headers); } else { $reponse = -2; } } ?>