Completely changed the internal site structure to use PHP templates. Mail now works with success and error messages.