@ginerjm, calm down, he is a beginner, perhaps if everyone was to put what they thought was the appropriate answer, then one may speak to the OP.

If the process was blocked in to processes:

1. Check for a real web form ($_POST['submit'])
2. Sanitize inputs in to a safe variable / array using a whitelist
3. Validation of the data streams, do they contain data, if not flag it.
4. If we pass validation: Create the email body, variables for sending the email
5. send email and capture any send resulting from the process
6. handle any error or success response

That to me sums up the process involved.