[thelist] PHP Form Help

Jeff Hinds jeff.hinds at netagency.com
Wed Feb 6 17:45:16 CST 2008


Great I'll give it a try.

Thanks Shaun!

Jeff

-----Original Message-----
From: thelist-bounces at lists.evolt.org
[mailto:thelist-bounces at lists.evolt.org] On Behalf Of shaun at porkandpaws.com
Sent: Wednesday, February 06, 2008 5:25 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] PHP Form Help


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




-- 

* * Please support the community that supports you.  * *
http://evolt.org/help_support_evolt/

For unsubscribe and other options, including the Tip Harvester 
and archives of thelist go to: http://lists.evolt.org 
Workers of the Web, evolt ! 




More information about the thelist mailing list