When we Submit a Contact form, it shows a Success message or Thank you message and Error Messages too. Now, sometimes we need to customize these messages according to us.
In Magento, we can change with very ease as such by using following steps:
Navigate to app/code/core/Mage/Contacts/controllers & copy IndexController.php to app/code/local/Mage/Contacts/controllers
We copy to local path because core pool upgrades on upgrading Magento version, If we copy it to local pool our changes will be as it is on upgradation too.
So after copying IndexController.php to local pool, open it & at line 112, edit Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us. with your custom success message.
At line 119, edit Unable to submit your request. Please, try again later with your custom error message.
Save file & Clear Magento Cache & Check on frontend.
Happy Coding 🙂
Also check Add Newsletter checkbox to Contact Form