Try this:
var_dump(mail($mail,"test","test"));
What do you see now? The mail() function returns TRUE if the mail was send succesfully. Of course, due to the lack of proper mail headers, it's also possible that the mail you sent is filtered as spam by Gmail.