apache + php4 + mail() + sendmail
hello,
When i use mail() function in php4 and i write a wrong "to:" email,
the error notification is send to the apache user (www-data) instead of me
after investigation, i find the problem: i can't change the header like i
want
$headers .= "Return-Path: <toto@8-D.org>\r\n";
$headers .= "From: toto <toto@8-D.org>\r\n";
$headers .= "X-Sender: <toto@8-D.org>\r\n";
$headers .= "X-Mailer: PHP/". phpversion() ."\r\n";
$headers .= "X-Priority: 3\r\n"; // Message urgent!
$headers .= "Errors-To: <toto@8-D.org>\r\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1\r\n";
My Return-Path is not use
What is the solution ?
Must i make a new sendmail rule ?
Sylvain
Reply to: