First a few infos:
mail()
Is it possible that you have a firewall blocking outgoing SMTP connections? Are there other things on that server that can successfully send email?
I would make this a comment, but am not allowed to yet.