katasova
02-23-2006, 11:56 AM
Hello, i have this little problem and i dont know if it is my fault or is something of my SMTP server...
I have this headers to send an email:
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: <$from>\r\n";
$headers .= "Return-Path: katasova@gmail.com\r\n";
$headers .= "Reply-To: katasova@gmail.com\r\n";
When i send the mail:
$pop1=mail($email, $subject, $image, $headers);
evreything works fine unless i send an email that doesnt exist, lets say:
$email = me@me.com
If i try to send this email, the SMTP server cant find the 'me.com domain so it should send an error mailto the "Return-Path" header, at least thats what i want, but the SMTP server send the error mail to the "From"
Plz, anyone know if im doing something wrong in the headers?
THX
I have this headers to send an email:
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: <$from>\r\n";
$headers .= "Return-Path: katasova@gmail.com\r\n";
$headers .= "Reply-To: katasova@gmail.com\r\n";
When i send the mail:
$pop1=mail($email, $subject, $image, $headers);
evreything works fine unless i send an email that doesnt exist, lets say:
$email = me@me.com
If i try to send this email, the SMTP server cant find the 'me.com domain so it should send an error mailto the "Return-Path" header, at least thats what i want, but the SMTP server send the error mail to the "From"
Plz, anyone know if im doing something wrong in the headers?
THX