cpanel email to email send with php

PHP
<? 

$to      = '[email protected]'; 

$subject = 'The test for php mail function'; 

$message = 'Hello'; 

$headers = 'From: [email protected]' . "\r\n" . 

    'Reply-To: [email protected]' . "\r\n" . 

    'X-Mailer: PHP/' . phpversion(); 

mail($to, $subject, $message, $headers); 

?><?php

//testing my first php mail()

mail('[email protected]', 'Subject Line Here', 'Body of Message Here', 'From: [email protected]');

?><?php

$to      = '[email protected]';

$subject = 'the subject';

$message = 'hello';

$headers = 'From: [email protected]' . "\r\n" .

    'Reply-To: [email protected]' . "\r\n" .

    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);

?>
Source

Also in PHP: