It is important to give the people who visit your site an opportunity to contact you. This can provide you with valuable feedback on your site, as well as collect possible sales leads or recruit new people for your mailing list. PHP makes it easy to send the contents of a form directly to your email. This is done with the Mail () function.
By using more than one mail function you are able to send the information to yourself and to send a confirmation mail to the site visitor to let them know you will be responding to them shortly.