Re: mail function works, but always from nobody@localhost!

From: Date: Tue, 04 Mar 2003 08:32:11 +0000
Subject: Re: mail function works, but always from nobody@localhost!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138030@lists.php.net to get a copy of this message
add an extra variable to your mail function. php takes an optional 4th parameter, which adds features like "From" and "Reply". example: $extra = "From: $name <$email>\r\n\Reply-To: $email"; so the mail function would be: mail($recipient,$subject,$body,$extra); Hope this helped. "Ml" <slickmik@eden.rutgers.edu> wrote in message news:20030304051003.3427.qmail@pb1.pair.com... > How exactly would I go about fixing my current php/sendmail setup so that it > uses the value specified in my php input form in the > from box instead of always setting the email from address as : > nobody@locahost ??? > > Any help would be greatly appreciated. Thanks! > >

« previous php.general (#138030) next »