Here's my two cents on mail()
firstly, as kenrbnsn said, the full mail() is:
mail($to,$subj,$body,$headers,$fail_bounce)
where $fail_bounce= "-f
email_bounces_address@whatever.com"
if your email is sent, and if it bounces or does not get delivered, because of a bad email address then, the email will be bounced back to
email_bounces_address@whatever.comNow - if your php mail() is NOT working at all: you will have to test it out.
Do you have ssh (login) access to the webserver?
Mail logs are kept in /var/log/mail.info All emails sent and recieved are logged to this file. I doubt you will have permission however to read these logs.
Depending on what MTA (sendmail etc.) is on the server, if you have ssh access - you can bypass php's mail() and test if emails CAN actually be sent from your server -> how to test sendmail: [a href=\"http://wiki.kartbuilding.net/index.php/Sendmail\" target=\"_blank\"]http://wiki.kartbuilding.net/index.php/Sendmail[/a]
If all that fails - then to a phpinfo() and check your mail settings in it.
You may have to use your own Mail server to send emails.
Best of Luck tracing the problem.
-steve