0)
{
// echo '' . print_r($_POST, true) . '
';
// Send the email
if( $_POST['plopt'] != '' )
{
// Honeypot filled, we don't send anything
$result = true;
} else {
$message = "Message du formulaire de contact \r\n" .
"Téléphone : " . $_POST['phone'] . "\r\n\r\n" .
$_POST['message'];
// We can skip the htmlentities($_POST['message']) because we send the message in plain text
$headers = "Content-type: text/plain; charset=utf-8 \r\n" .
'From: from@lul.con' . "\r\n" .
'Reply-To: ' . $_POST['email'] . "\r\n" .
'X-Mailer: PHP/' . phpversion();
$result = mail( "zed@lul.con", "Message du formulaire", $message, $headers );
}
}
?>