1) Change the directory to magento installation
2 cd appcodecoreMageContactscontrollers
3) vi IndexController.php
4) Search for Mage::getSingleton(‘customer/session’)->addSuccess(Mage::helper(‘contacts’)->__(‘Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.’)) and edit the text