Re: mail -f option for removing nobody@localhost Return-Path

From: Date: Thu, 20 Nov 2003 01:08:43 +0000
Subject: Re: mail -f option for removing nobody@localhost Return-Path
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-170366@lists.php.net to get a copy of this message
* Thus wrote Glenn Gasner (glenn@perex.com): > Here is the code I'm using trying to replace nobody@localhost with my email > address when I use the PHP mail() function to send a message: > > $headers="From: Glenn Gasner <glenn@perex.com>\r\n" > ."Reply-To: Glenn Gasner <glenn@perex.com>\r\n" > ."Return-Path: Glenn Gasner <glenn@perex.com>"; > mail("glenn@perex.com","Website Comment",$comments,$headers,"-f > glenn@perex.com"); Observe the 5th parameter to mail() function http://php.net/mail Curt -- "My PHP key is worn out" PHP List stats since 1997: http://zirzow.dyndns.org/html/mlists/

« previous php.general (#170366) next »