Feb 3, 2011

PHP mail function


Many websites offer a way for you to send them an email from a simple form on their site. Providing the form as opposed to simply listing your email address not only looks nicer but also serves two purposes.
  1. 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.
  2. 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 ( "me@mysite.com", "Contact Us Form", "This is an email from your site", "From: you@yoursite.com" ) 

2 comments:

formaldresses4us said...

Your blog article is very intersting and fanstic,at the same time the blog theme is unique and perfect,great job.To your success.


----------------------------------------------------------
Flower Girl Dresses|Empire Wedding Dresses|New Style Wedding Dresses

Unknown said...

To your success.




_________________________________________________________________
WoW Gold|Diablo 3 Gold|Swtor Credits|Aion kinah kaufen