I still have little knowledge of php, I asked a question earlier but that gave me so as it is now my help please. I'm looking for an easy script that sends the info and send a confirmation. but everyone says something different. Have you a script that I only need to change what data? before hand thanks
now use this script but does not work
also completely leak, I understood for spammmers
<?php
error_reporting(E_ALL);
$ontvanger = "info@mijnemailadres.nl";
$onderwerp = "Contactformulier";
// Controleren of er een formulier is verzonden
if ($_SERVER['REQUEST_METHOD'] == "POST") {
// body voor de email opmaken
$body = "";
$body .= "Naam: ". $_POST['naam'] ."\n";
$body .= "Telefoon: ". $_POST['telefoon'] ."\n";
$body .= "Email: ". $_POST['email'] ."\n";
$body .= "Onderwerp: ". $_POST['onderwerp'] ."\n";
$body .= "Bericht: ". $_POST['bericht'] ."\n";
$formsent = mail($ontvanger, $onderwerp, $body, "From: <". $_POST['email'] .">");
if ($formsent) {
$onderwerp2 = "Bedankt voor uw reactie";
$bericht2 = "Beste ". $_POST['naam'] .",Bedankt voor uw reactie! Ik neem zo spoedig mogelijk contact met u op via uw e-mailadres,
Met vriendelijke groet,
rene";
// Bevestiging verzenden
$formsent = mail($onderwerp2, $bericht2, "From: <'$ontvanger'>");
}
}
form.php