Contact us form not sending email: magento
I was working on a magento site and setup contact form but that wasn’t sending email, just posted on contact us page and not showing any message whether email sent or not. I check form action in source code and it was empty. To make contact form working do following changes.
Opened app/design/frontend/themedirectory/template/contacts/form.phtml file and change form action as following
<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
<form action="<?php echo $this->getUrl('contacts/index/post'); ?>" id="contactForm" method="post">
After making this change contact form will start working.