Hy all of you,
Why my Return Path address is not shown in mail's header.Here si my code:
Quote:
<?
$name = stripslashes($_POST['name']);
$from = stripslashes($_POST['from']);
$to = stripslashes($_POST['to']);
$subject = stripslashes($_POST['subject']);
$message = stripslashes($_POST['message']);
$xmailer = stripslashes($_POST['xmailer']);
$format = stripslashes($_POST['format']);
$priority = stripslashes($_POST['priority']);
$headers .= "From: \"".$name."\" <".$from.">\r\n";
$headers .= "Return-Path: Name <".$from.">\r\n";
$headers .= "X-Priority: $priority\r\n";
$headers .= "X-Mailer: $xmailer\r\n";
$headers .= "Content-type: text/$format; \r\n";
if($name=="" or $from=="" or $to=="" or $subject==""){
$verify = "<font size=\"4\" color=\"#ff0000\" >Error sending mail.Check all fields and try again.</font>";
}
else {
mail($to,$subject,$message,$headers);
$verify = "Your email has been sent to";
}
?>
|
On some servers the return path it's shown but on other servers it show me something like this:
nobody@whateverdomain.com .it's possible to solve this problem?

Thank you.