PDA

View Full Version : return-path not working...



evandaeman
04 Dec 2006, 12:29 PM
i've been googling the crap out for the answer...
i send emails using mail() function...

however i am not getting any of the bounce mails.. i need to have that data for tracking the bad emails...

but can't figure it out.

$header = "From: webmaster@domain.com\r\n".
"Return-Path: webmaster@domain.com\r\n";
$subject = "$subject";
$email_to = "$email";
$message = "Contact: $fname $lname";

@mail($email_to, $subject ,$message ,$header, $param ) ;



what am i doing wrong here???


if the email is going to bademail@yahoo.com i want to get a bounce back to webmaster@domain.com

i found lots of docs on it and tried many different things.. but i can't get it to work :eek2: can anyone help?