I would remove JavaScript from the equation. It is only needed for form validation anyway.
Instead make a very basic script to test if the mail()
function is even working as expected and go from there:
<?php
$to = 'whoever@whatever.de';
$subject = 'test';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
Ref:
http://stackoverflow.com/questions/5335273/how-to-send-an-email-using-php