I have disabled this part from newsletter.xml

<reference name="left">
  <block type="newsletter/subscribe" name="left.newsletter" template="newsletter/subscribe.phtml"/>

and directly using this part in the header

<form action="<?php echo $this->getFormActionUrl() ?>" method="post" id="newsletter-validate-detail">
                                        <input type="text" name="email" id="newsletter" title="" class="input-text required-entry validate-email" />
<button type="submit" title="<?php echo $this->__('Join') ?>" class="button"><p>JOIN</p></button>

from the code of subscribe.phtml. But it does't subscribe email. Whats wrong or is that a SMTP problem?


As you put the code into the template of the Mage_Page_Block_Html_Header block the getFormActionUrl method originally referenced to Mage_Newsletter_Block_Subscribe is not returning a right value anymore.

So replace

<?php echo $this->getFormActionUrl() ?>


<?php echo $this->getUrl('newsletter/subscriber/new', array('_secure' => true)) ?>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.