Simple contact us page in PHP

This is a simple contact us page. This script sends an email to a specified user using php. We will be using in-built php function mail().
So first, we start it off by creating a HTML form to accept the sender/receiver details from the user along with the email subject and email body.
contact.html

Now we process the user-input in the contact.php.
mail():

The above syntax is the basic syntax. These are the three parameters which need to be passed mandatorily.

contact-process.php:

The following two tabs change content below.