Select Page

What’s the problem?

Contact page, using the standard Magento contact form, doesn’t sent email.

Solution:

The first, check settings within:  System > Configuration > Mail Sending Settings.

Next, go to appdesignfrontenddefaultsm_themetemplatecontactsform.phtml and find:

<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">

change to…

<form action="<?php echo Mage::getUrl(); ?>contacts/index/post/" id="contactForm" method="post">

Note: If your site use’s http:// on the contact page,  go to appdesignfrontenddefaultsm_themetemplatecontactsform.phtml and find:

<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">

change to…

<?php
$url = Mage::getUrl();
if(isset($_SERVER[‘HTTPS’]))
{
$url = str_replace (‘http://’, ‘https://’, $url);
}
?>
<form action=”<?php echo Mage::getUrl(); ?>contacts/index/post/” id=”contactForm” method=”post”>