firefox Posted November 13, 2005 Share Posted November 13, 2005 Hey, Im having some trouble with the mail() funciton. I want my visiters to be able to email my using this. My only problem is that I cant seem to get the Reply-To attribute to use what is entered in a text field. Code is as follows: <?php$to = 'name@domain.com';$subject = $_POST["subject"];$message = $_POST["message"];$headers = 'From: news@4hacks.com' . "\r\n" . 'Reply-To:' $_POST["email"] . "\r\n"; mail($to, $subject, $message, $headers);?> Any suggestions are helpful thanks,Adam Link to comment Share on other sites More sharing options...
alwaysvaghu Posted November 14, 2005 Share Posted November 14, 2005 $email = $_POST["email"] $headers = "From:news@4hacks.com";$headers .= 'Reply-To:$email\r\n"; Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now