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 = "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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.