Jump to content

mail() error


firefox

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...