Magento 1.9.2.3 contact form issue, its the default contact form in magento. I get error Unable to submit your request, please try again later
, even all fields are filled, however this form is submitted and we get email but error still appears for users using that form.
I have narrowed down this error to:
if (!$mailTemplate->getSentSuccess()) {
throw new Exception();
}
in app/code/core/Mage/Contacts/controllers/IndexController.php
when I comment out the code above, it will give correct message ("Success, your query has been sent...").
What's the fix for this? Is above code necessary? I will get the please fill all fields error if I leave some of the required field blank.