[thelist] PHP Form Help

shaun at porkandpaws.com shaun at porkandpaws.com
Wed Feb 6 17:24:35 CST 2008


if using php mail function

 eg. mail(to,subject,message,headers,parameters)

set the from and or reply to part of the headers with the email address
submitted by the form 

e.g. 
$from=<email address submitted>

$mailheader = "From: $from \r\n";
$mailheader .= "Reply-To: ".$from."\r\n"

mail('<recipeient>',$subject,$message,$mailheader); 


Shaun
"Jeff Hinds" <jeff.hinds at netagency.com> wrote:

> I'm a not a programmer but I've created a PHP form that I need to include a
> from address so the clients can reply to the user who submitted the form.
> 
> Right now it appears to be an email address sending the email. When you
> select REPLY the FROM field in the email is blank.
> 
> What code is necessary for the email address to automatically populate into
> the form?
> 
> Thank you, 
> 
> Jeff







More information about the thelist mailing list