From a3a2b7d224b89bba5314f92aa6d6e056e4ae45ad Mon Sep 17 00:00:00 2001 From: polo Date: Tue, 3 Nov 2026 13:48:08 +0100 Subject: =?UTF-8?q?nouveau=20d=C3=A9p=C3=B4t,=20MAJ=20script=20matomo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- contact-post.php | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 contact-post.php (limited to 'contact-post.php') diff --git a/contact-post.php b/contact-post.php new file mode 100644 index 0000000..6d6f19d --- /dev/null +++ b/contact-post.php @@ -0,0 +1,96 @@ +' . $passage_ligne; // expéditeur + $header .= 'Reply-to: ' . $adresse . ' <' . $adresse . '>' . $passage_ligne; // réponse + $header .= 'Return-path : ' . $adresse . ' <' . $adresse . '>' . $passage_ligne; // retour en cas d'erreur + $header .= 'MIME-Version: 1.0' . $passage_ligne; + $header .= 'Content-type: text/plain; charset=utf-8 boundary=\"' . $boundary . '\"' . $passage_ligne; + + // message + //$message = $passage_ligne."--".$boundary.$passage_ligne; + //$message .= "Content-Transfer-Encoding: 8bit".$passage_ligne; + $message .= $passage_ligne . $contenu . $passage_ligne; + //$message .= $passage_ligne."--".$boundary.$passage_ligne; + + echo $destinataire; + echo "
"; + echo $sujet; + echo "
"; + echo $message; + echo "
"; + echo $header; + + // Envoi + mail($destinataire, $sujet, $message, $header); + + // envoi réussi, on peut nettoyer + unset ($_SESSION['adresse']); + unset ($_SESSION['contenu']); + + header('Location: contact.php?erreur=0'); + } + else + { + header('Location: contact.php?erreur=1'); + } + } + else + { + header('Location: contact.php?erreur=1'); + } + } + else + { + header('Location: contact.php?erreur=1'); + } + } + else + { + header('Location: contact.php?erreur=2'); + } +} +else +{ + header('Location: contact.php?erreur=2'); +} +?> -- cgit v1.2.3