Since ur only now starting PHP, I dont want 2 confuse u with IF statements etc, but here sum info..
When u wish to display an output result when an action is made, u shud use the IF statement (see php.net for more).
U shud do this:
<?php
if (mail($to, $subject, "From: $from"))
{
print "emailed ok";
}
else
{
print "error: couldnt send email";
}
?>
Also, there is also a body of your message missing (Format: $to, $subject, $body, "From: $from")), dont know if its required for a valid submission, but the the variable in that place I stated sends the email with text.