Re: mail() question!

From: Date: Tue, 26 Nov 2002 00:16:33 +0000
Subject: Re: mail() question!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-126023@lists.php.net to get a copy of this message
you can use the (optional) headers argument to mail() and add the From header: mail ($to, $subject, $body, "From: $from"); "Beauford.2002" <beauford.2002@rogers.com> wrote in message news:000f01c294e0$6ce1fcd0$6401a8c0@p1... > Hi, > > I have a form where a user enters an email address. The contents of the form > are then sent to myself, which works fine. The problem is that the from > field says it is from nobody - how can I get it to say it is from the email > address the user inputted - or is this possible? > > TIA > >

« previous php.general (#126023) next »