cancel
Showing results for 
Search instead for 
Did you mean: 

How to get unsubscription link in emails (2.4.2)

How to get unsubscription link in emails (2.4.2)

Hello,

 

I am trying to get the unsubscription link in the email e.g. on order placement email etc. But I am unable to get the URL, So far I have tried several attributes as given below.

 

{{var subscriber.getUnsubscriptionLink()}}
{{var subscriber_data.getUnsubscriptionLink()}}
{{var subscriber_data.unsubscribe_link}}
{{var subscriber.unsubscribe_link}}

 

None of the above works for magento 2.4.2. Can anyone please guide me how to get this link

 

3 REPLIES 3

Re: How to get unsubscription link in emails (2.4.2)

Hello @ngohang4891039 

 

Trust you are doing well,

 

Check out this link for precise solution https://magento.stackexchange.com/questions/172514/magento-2-how-to-include-unsubscribe-link-in-tran...

 

Hope this helps you,

Problem solved? Hit the Kudos button and "Accept it as Solution"

Re: How to get unsubscription link in emails (2.4.2)

Hello,

did you solve this problem?

 

I'm having the same issue with magento 2.4.2-p1.

 

Best regards,

Leonel

Re: How to get unsubscription link in emails (2.4.2)

Hello again,

reported the problem to magento, the issue is now verified and in progress.

 

https://github.com/magento/magento2/issues/33310

 

Best regards,

Leonel Nunes