title: How to use newsletter subscription checkbox on any section of MyAccount in Magento?
body: <p>I am trying to implement the functionality which we get in the My Account section as shown in the screenshot.(Default functionality, but I want to use it in some custom phtml file. )</p>
  
  <p><img src="https://i.stack.imgur.com/kw60V.png" alt="enter image description here"></p>
  
  <p>I am using the following code to implement this in My account section of the Magento as I have some design customization in phtml file.This functionality I want to provide to the Logged in customers only.</p>
  
  <pre><code>&lt;?php echo $this-&gt;getLayout()-&gt;createBlock('customer/newsletter')-&gt;setTemplate('customer/form/newsletter.phtml')-&gt;toHtml(); ?&gt;
  </code></pre>
  
  <p>But when I click on save I am redirected to 404 page.
  Please suggest.</p>