Lots of spam is being sent to this form. I need to add Google Recaptcha to it.
What is the PHP file that's responsible for receiving the contact POST at /contacts/index/post/ ?
After some search I couldn't find anything relevant except form.phtml which seems to be only responsible for displaying the form but not receiving the POST data.
Best Answer
He is talking about Magento1 because there no contacts in
Magento2
So
contacts/index/post
is a controller contact form module :contacts
= frontname,index
= controllerName,post
= postAction().If you want to add you captcha, so it's happening in
form.phtml
, you have nothing to do in controller.To add GoogleRecaptcha in your contact form :