Something like
$to = '
[email protected]';
$subject = 'Subject;
$body = 'This is the content of the mail';
$headers = "From:
[email protected]\r\n" .
"X-Mailer: php";
if (mail($to, $subject, $body, $headers)) {
$result=true;
} else {
echo("ERROR: ".$e->getMessage());
}