simple mail in php

simple mail in php
Php used send mail to mail()
syntax:

mail(to,subject,message,headers,parameters)
simple example of php mail
<?php
$test = "test mail";
// Send email
mail("test@examples.com","My subject",$test);
?>