I noticed that the mail() function doesn't work trying to send it to an e-mail address with a domain which does not exist.
1) IS THAT NORMAL?
I mean: instead of simply getting back an error message the page on which the script takes places won't be loaded.
2) HOW CAN I WRITE A SCRIPT WHICH SKIPS MAIL() IF THERE IS A PROBLEM SENDING IT?
If possible it would be great to get back a message like: "problem sending e-mail"