php contact form headers
Posted by: SteveNelson
Posted on: 2009-07-09 16:17:00
My question has to do with headers generated by PHP contact forms on web sites. I have read many, many articles and tutorials on writing PHP contact forms. Those tutorials sometimes describe how to write custom headers, and some of them even outline which headers *can* be written, but none of them really conclusively lay out what headers *should* be included and, more importantly, what they should consist of. Even the php.net resource seems to demonstrate what *can* be done but not what *should* be done.
In particular, I'm interested in the nuanced difference between From, Reply-To and Return-Path.
If an email originates from a contact form on my web site, should all three headers contain the same value (that of the email address the user of the form fills out)? Since the email the contact form generates actually originates from *my* domain, is it incorrect to have all three headers reflect the sender's email address? I find the whole email subject both very deep and very confusing.
Thanks. DreamHost support (understandably) dodged this question so I'm looking to the wider community for their collective wisdom.
Steve