Issue:
Contact page, doesn’t sent email.
Solution:
The first, please check: System > Configuration > Mail Sending Settings.
The next, please go to \app\design\frontend\default\sm_theme\template\contacts\form.phtml and find:
1
|
<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
|
=> change to:
1
|
<form action="<?php echo Mage::getUrl(); ?>contacts/index/post/" id="contactForm" method="post">
|
Note: If your site use the url is: https://
please go to \app\design\frontend\default\sm_theme\template\contacts\form.phtml and find:
1
|
<form action="<?php echo $this->getFormAction(); ?>" id="contactForm" method="post">
|
=> change to:
1
2
3
4
5
6
7
8
|
<?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">
|
Thanks!