note 25848 rejected from ref.mail by victor

From: Date: Wed, 09 Oct 2002 13:59:07 +0000
Subject: note 25848 rejected from ref.mail by victor
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-37843@lists.php.net to get a copy of this message
Problem with Return-Path. code: $from = stripslashes($_POST['from']); $to = stripslashes($_POST['to']); $subject = stripslashes($_POST['subject']); $message = stripslashes($_POST['message']); $headers =""; $headers .= "From: $from\r\n"; $headers .= "Reply-To: $from\r\n"; $headers .= "MIME-Version: 1.0\r\n"; $headers .= "Content-type: text/html; charset=iso-8859-1\r\n"; $headers .= "Return-Path: <info@domain.com>\r\n"; if($from!="" && $to!="") { mail($to, $subject, $message, $headers); echo("mail from $from has send to: $to<br>"); } else echo("from or to empty!<br>"); When I look at the headers I see: Return-Path: <nobody@server_whith_php.com> the apache user nobody is used. how can I change this?

« previous php.notes (#37843) next »