Submitting form leads to error page

After uploading formmail, the contact form, error page and thank you page I filled out the form to test it.
It looked like the form was being processed but instead of being redirected to the thank you file I got the error file. When I'm filling out the form the wrong way (not the requiered fields) it sends me to the error form too.
I never got an email either but I found out reading the forum that that could be a provider issue.

Can anyone help?

Thanks in advance.

Formmail how I set it up:

// To change the address the e-mail comes from use define('FROM', 'Example Name ');
define('FROM', null);

$referers = array('lens-vision.nl','gmail.com');

// $recipient_array format is $recipient_array = array('sometext'=>'email@example.com','asdf'=>'email2@example.com');
$recipient_array = array('lensvision'=>'lensvisionphotography@gmail.com');

$valid_env = array('REMOTE_HOST', 'REMOTE_ADDR', 'REMOTE_USER', 'HTTP_USER_AGENT');

Part of the Contact form:

Name

Email

Question/Suggestion/Comment

User login