Something like this should suit your needs, It has the From Function & checks to see if it sends or not.
PHP Code:
<?php
$to = "Your@Emailhere.com";
$subject = "The Subject";
$body = "EG - Someone has Visited Your Website";
$from = "someonelse@example.com";
$headers = "From: $from";
if (mail($to, $subject, $body, $headers)) {
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
}
?>