"; $aName=removeSomeChars($_POST["famnaam1"]); if ( $aName == "" ) { $isValid = false ; $theErrorMsg .= "
$body"); //echo ( "Mailer Error: " . $mail->ErrorInfo . "" ); } return $mailssend; } phpMail( $anEmail, $aFirstName .' '. $aName, $theSubject, $theMsg, $theMailto); } else { /** * http://php.belnet.be/manual/nl/ref.mail.php#53704 * * The most common problem people have with the mail() function * is the failure to include an additional header containing the from address in the call * (along with the standard from address). * This commonly results in failed delivery due to spam filtering at the receiving end. * The solution: set your header-from address, or use this function: */ function mail_nvlp($fromname, $fromaddress, $toname, $toaddress, $subject, $message) { // Copyright 2005 ECRIA LLC, http://www.ECRIA.com // Please use or modify for any purpose but leave this notice unchanged. $headers = "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/plain; charset=iso-8859-1\r\n"; // $headers .= "X-Priority: 3\r\n"; // $headers .= "X-MSMail-Priority: Normal\r\n"; // $headers .= "X-Mailer: php\r\n"; $headers .= "BCC: erik@peestoemp.be\r\n"; $headers .= $theHeader; return mail($toaddress, $subject, $message, $headers); } mail_nvlp($aFirstName .' '. $aName, $anEmail, '', $theMailto, $theSubject, $theMsg); } include('ok.html'); exit; } // if ( $_POST["post"] == "" ) { $isValid = true ; $isValidFrom = true ; $aName=""; $aFirstName=""; $aStraat=""; $aNr=""; $aPostCode="2250"; $aTown="Olen"; $anEmail=""; } ?>