Hello,
Thanks for your Patience!
We have been actively checking Our Codes for a while. Honestly, there are no reports of SPAM Attacks on any of our User's websites after upgrading the codes to the new include/form.php File. So, your Website is definitely an exception because if reCaptcha cannot protect SPAM, then there is a Serious Issue.. Now there can be different causes for this:
Your servers are not secure enough to combat SPAM when passing through the Mail Servers.
The SPAM bots have been using a Browser with JS turned off which causes the required Fields to not work correctly.
In order to fix this, you can simply add the following code:
if ( empty( $_POST['template-contactform-message'] ) || empty( $_POST['template-contactform-message'] ) ) {
echo '{ "alert": "error", "message": "Some Fields in the Form are empty. Please try again." }';
exit;
}
just after if( $_SERVER['REQUEST_METHOD'] == 'POST' ) { Line of code in the include/form.php File which will force the user to Fill up these fields.
Hope this Helps!
Let us know if we can help you with anything else or if you find any further issues.