note 25848 added to ref.mail

From: Date: Tue, 08 Oct 2002 21:42:57 +0000
Subject: note 25848 added to ref.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-37811@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? -- http://www.php.net/manual/en/ref.mail.php http://master.php.net/manage/user-notes.php?action=edit+25848 http://master.php.net/manage/user-notes.php?action=delete+25848 http://master.php.net/manage/user-notes.php?action=reject+25848

« previous php.notes (#37811) next »