include("config.inc.php"); require("phpmailer/class.phpmailer.php"); if (isset($_GET['Naam'])) { /* $from = "From: " . $_GET['Naam'] . " <" . $_GET['E-mail'] . ">\r\n"; $txt = $_GET['Bericht']; $sent = mail($emailAdres,"Bericht via contactformulier op jece.nl",$txt,$from); */ $mail = new PHPMailer(); $mail->From = $_GET['E-mail']; $mail->FromName = $_GET['Naam']; $mail->Mailer = "smtp"; $mail->Body = $_GET['Bericht']; $mail->Subject = "Bericht via contactformulier op jece.nl"; $mail->AddAddress($emailAdres, "Jan de Nooijer"); $sent = $mail->Send(); } if (isset($sent)) { echo "
Bedankt voor uw bericht!
"; } else { ?>
Contactformulier
Uw naam
Uw e-mail
Uw bericht
} ?>
Contactgegevens
Jece Produkties BV
Burg. van Haarenstraat 32
5331 AE Kerkdriel
Tel (0418) 63 10 01
Fax (0418) 63 10 01
E-mail
info@jece.nl