Jump to content

send confirmation email problems


reloadingpc

Recommended Posts

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 = "[email protected]";
$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

Link to comment
https://forums.phpfreaks.com/topic/293115-send-confirmation-email-problems/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.