// contact
function MailContactForm() { require('phpmailer.class.php'); $required_fields = array('naam', 'adres', 'postcode', 'woonplaats', 'telefoon', 'email'); foreach($required_fields as $field) { if (empty($_POST[$field])) $GLOBALS['empty'] = 'true'; } if ($GLOBALS['empty'] == false) { $mail = new PHPMailer(); $mail->From = 'info@shoeclub.nl'; $mail->FromName = 'Shoeclub.nl'; $mail->Subject = 'Mail via shoeclub.nl'; $mail->AddReplyTo($_POST['email']); $mail->AddAddress('webshop@assem.nl'); $mail->AddAddress('remco@letterfreak.nl'); $mail->IsHTML(true); $body = ' Naam: '.$_POST['aanhef'].' '.$_POST['naam'].'Adres: '.$_POST['adres'].'
Postcode: '.$_POST['postcode'].'
Woonplaats: '.$_POST['woonplaats'].'
Telefoon: '.$_POST['telefoon'].'
E-mailadres: '.$_POST['email'].'
------------------------------
'; if (isset($_POST['inschrijving1'])) $body .= 'Aanmelding voor het klantenbestand: ja
'; if (isset($_POST['inschrijving2'])) $body .= 'Een adreswijziging doorgeven: ja
'; if (isset($_POST['inschrijving3'])) $body .= 'informatie aanvraag: ja
'; $body .= ' ------------------------------
Aanvullende informatie: '.$_POST['aanvullend'] ; $mail->Body = $body; if(!$mail->Send()) { $GLOBALS['error'] = 'Er is iets fout gegaan met het versturen van het formulier.
probeer het later nog eens of neem contact op met info@shoeclub.nl en vermeld daarbij de volgende foutmelding:
'. $mail->ErrorInfo; } } } if ($_SERVER['REQUEST_METHOD'] == 'POST') { MailContactForm(); } ?>





