The PHP mail() function is used to sending emails in user or client. Email messages is very common for web applications (or) web sites, for example : sending a welcome email when a user create a new account on your website, newsletters, registration purpose, feedback or comments and contact from etc.
Syntax :
mail($to, $subject, $message, $headers, $parameters);