- First, the form lets the website owner decide what information it is important to collect and prompts the users to fill in the answers to each of their questions. This way the user doesn't forget to include important information.
- Second, if you list your email directly on your site it can be picked up by bots designed to 'farm' email addresses. What that means for you is SPAM. Nobody likes to have their inbox flooded with SPAM, and using a form can help prevent that.
The mail function is phrased as: mail (to, subject, body, headers)
An example is:
mail ( "firstname.lastname@example.org", "Contact Us Form", "This is an email from your site", "From: email@example.com" )