<?php

     $to = '[email protected]';
$subject = 'Testing email on server ' . date('d/M/Y');
   $body = 'Just a test email';
   $headers = 'From:[email protected]';
  
  

$emailit = @mail($to, $subject, $body, $headers);

if($emailit == TRUE){
       echo 'E-mail succeeded.';
}else{
       echo 'E-mail failed.';
}

?>