How to set return path? PHP is installed on a linux-machine.
global $HTTP_POST_VARS;
//set_ini didn't work and return-path in a header didn't work as well.
// blnIsSet=set_ini('sendmail_path','/usr/sbin/sendmail -t -i -f user@domain.com');
//$email_header .= "Return-Path: ".$HTTP_POST_VARS["email"]["afzender"]."\n";
$email_naar = $HTTP_POST_VARS["email"]["afzender"];
$bcc_email = getEmailadressen();
$email_onderwerp= $HTTP_POST_VARS["email"]["onderwerp"];
$email_inhoud = $HTTP_POST_VARS["email"]["inhoud"];
$email_header = "From: ".$HTTP_POST_VARS["email"]["afzender"]."\n";
$email_header .= "Reply-To: ".$HTTP_POST_VARS["email"]["afzender"]."\n";
$email_header .= "X-Mailer: PHP/" . phpversion()."\n";
$email_header .= "X-Sender-IP: ".fetchip()."\n";
$email_header .= "Mime-Version: 1.0 \n";
$email_header .= "Content-Type: text/plain; charset=\"us-ascii\" \n";
$email_header .= "Content-Transfer-Encoding: 7bit \n";
$email_header .= "Bcc: ".$bcc_email."\n";
$testVerzonden=@mail($email_naar,$email_onderwerp,$email_inhoud,$email_header);
return $testVerzonden;