Contact form is used in almost every website these days. The filled data needs to be sent to admin using email. In this post we are going to discuss the php code used to send a mail. First of all lets create an html form which will be used by a user to enter details.