Adding unsubscribe link in Newsletter mail templete in magento

A quick tip for Magento developer’s here, in how to add an unsubscribe link into a newsletter template so that the person can unsubscribe from the newsletter if they chose to do so.

Simply add {{var subscriber.getUnsubscriptionLink()}} into your template in order to output the link for the user to unsubscribe. This even works for people who aren’t registered customers of the Magento installation but that you’ve imported into your system as subscribing to the newsletter.

Full example of a link in your template to unsubscribe:

 

Follow this link to unsubscribe <!– This tag is for unsubscribe link –>

<a href=”{{var subscriber.getUnsubscriptionLink()}}”>
{{var subscriber.getUnsubscriptionLink()}}
</a>

2 thoughts on “Adding unsubscribe link in Newsletter mail templete in magento

Leave a Reply

Your email address will not be published.