Also... I hope that was a transcription error.
According to PHP.net's mail() function:
bool mail ( string to, string subject, string message [, string additional_headers [, string additional_parameters]])
so it takes these arguments:
$to, $subject, $msg, $headers, $addtl_params.
You are using ($to,$from,$subject,$msg) in your test, which isn't right.