PHP Code:
$from_name="Barefoot" ;
$from = "nonikes@shoeless.x10.bz";
$to="myaddress@gmail.com";
$mailbody="test message sent on: \n" . date('l jS \of F Y h:i:s A');
$subject="test of PHP mail() sending mail." ;
$headers = "Content-type: text/plain; charset=windows-1251 \r\n";
$headers .= "From: $from_name <$from>\r\n";
$headers .= "Reply-To: $from\r\n";
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "X-Mailer: PHP/" . phpversion();
$resp = mail($to, $subject, $mailbody, $headers);
The above code works on Chopin, a free server.
If $resp is true, the system has sent it.
But some email hosts (Hotmail) will bounce it back (check your Webmail for delivery failure notice) or put it in a spam folder.