There is no specific script for e-mail contact forms. There are many, each of which works differently.
If you're having problems with some specific script, you'll need to post a
minimal code sample so the problem is reproducible. We can't correct what we can't see. Make sure you follow the rest of the advice in my sig.