I have a form in which users can type in (from, to, subject, message) to send an email. How is it possible to set up a script so when my PHP processes the form to send an email, the reply-to email is whatever I set it to?
When you build the headers, specify the Reply-To: variable. Note that depending on the configuration of your mail server, there may be limitations on what you can set this value to.
I was guessing it has something to do with headers but didn't know exactly what to call it. But, Thanks! It works perfectly!
A Mail function has the following $to = "x@y.com"; $subject = "This is the Subject"; $body = "This is the body"; $headers = "Reply To: email here"; $headers .= "From: email here"; //You also need your type of email here, HTM, TXT ect then mail($to,$subject, $body, $headers);