Magento 2, How to include unsubscribe link in transaction email The Next CEO of Stack OverflowHow to disable the sending of Magento's default Success Email Template upon newsletter sign-upPayment transaction failed -email items -variableHow to add customer name and subscription email in transactional email template of invoice and newsletterMagento add custom attribute to transaction email itemsHow to Add Customer Group Name in Transactional Email (new order) on Magento 1Variable for store locale in email templates? Magento 1.9(Solved) Magento 2, Add product image in all transaction emails(shipment, invoice, credit memo)M2: How to add store address to transactional email / invoice email?Magento 2 - Transactional email templatesNo Unsubscribe message after unsubscribe newsletter Magento 2

Gödel's incompleteness theorems - what are the religious implications?

How to coordinate airplane tickets?

Find the majority element, which appears more than half the time

How to pronounce fünf in 45

How dangerous is XSS

Strange use of "whether ... than ..." in official text

Arrows in tikz Markov chain diagram overlap

Is it correct to say moon starry nights?

Avoiding the "not like other girls" trope?

Why doesn't Shulchan Aruch include the laws of destroying fruit trees?

How badly should I try to prevent a user from XSSing themselves?

How to show a landlord what we have in savings?

What did the word "leisure" mean in late 18th Century usage?

Why did early computer designers eschew integers?

Is a distribution that is normal, but highly skewed, considered Gaussian?

My ex-girlfriend uses my Apple ID to login to her iPad, do I have to give her my Apple ID password to reset it?

Why do we say “un seul M” and not “une seule M” even though M is a “consonne”?

My boss doesn't want me to have a side project

How do I secure a TV wall mount?

Is there a rule of thumb for determining the amount one should accept for a settlement offer?

How can a day be of 24 hours?

Why was Sir Cadogan fired?

How to find if SQL server backup is encrypted with TDE without restoring the backup

Shortening a title without changing its meaning



Magento 2, How to include unsubscribe link in transaction email



The Next CEO of Stack OverflowHow to disable the sending of Magento's default Success Email Template upon newsletter sign-upPayment transaction failed -email items -variableHow to add customer name and subscription email in transactional email template of invoice and newsletterMagento add custom attribute to transaction email itemsHow to Add Customer Group Name in Transactional Email (new order) on Magento 1Variable for store locale in email templates? Magento 1.9(Solved) Magento 2, Add product image in all transaction emails(shipment, invoice, credit memo)M2: How to add store address to transactional email / invoice email?Magento 2 - Transactional email templatesNo Unsubscribe message after unsubscribe newsletter Magento 2










1















Is there a out-of-the-box way of including an unsubscribe link in transactional emails inside of Magento 2?



I tried utilizing:



<a href="var subscriber.getUnsubscriptionLink()">
var subscriber.getUnsubscriptionLink()
</a>


Which is used in the email newsletter templates but this does not work inside of a transactional email.










share|improve this question














bumped to the homepage by Community 14 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Is this new order email?

    – Konstantin Gerasimov
    May 2 '17 at 1:24











  • No, I'm trying to include an unsubscribe link inside the subscription confirmation email to keep a client compliant in their country's electronic communication laws. Something along the lines of "You can unsubscribe at anytime using the following link".

    – Eirik
    May 2 '17 at 3:36












  • Create object of MagentoNewsletterModelSubscriber & call getUnsubscriptionLink function

    – Ankit Shah
    May 2 '17 at 9:10
















1















Is there a out-of-the-box way of including an unsubscribe link in transactional emails inside of Magento 2?



I tried utilizing:



<a href="var subscriber.getUnsubscriptionLink()">
var subscriber.getUnsubscriptionLink()
</a>


Which is used in the email newsletter templates but this does not work inside of a transactional email.










share|improve this question














bumped to the homepage by Community 14 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.















  • Is this new order email?

    – Konstantin Gerasimov
    May 2 '17 at 1:24











  • No, I'm trying to include an unsubscribe link inside the subscription confirmation email to keep a client compliant in their country's electronic communication laws. Something along the lines of "You can unsubscribe at anytime using the following link".

    – Eirik
    May 2 '17 at 3:36












  • Create object of MagentoNewsletterModelSubscriber & call getUnsubscriptionLink function

    – Ankit Shah
    May 2 '17 at 9:10














1












1








1








Is there a out-of-the-box way of including an unsubscribe link in transactional emails inside of Magento 2?



I tried utilizing:



<a href="var subscriber.getUnsubscriptionLink()">
var subscriber.getUnsubscriptionLink()
</a>


Which is used in the email newsletter templates but this does not work inside of a transactional email.










share|improve this question














Is there a out-of-the-box way of including an unsubscribe link in transactional emails inside of Magento 2?



I tried utilizing:



<a href="var subscriber.getUnsubscriptionLink()">
var subscriber.getUnsubscriptionLink()
</a>


Which is used in the email newsletter templates but this does not work inside of a transactional email.







magento2 magento-2.1 email transactional-mail






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked May 1 '17 at 17:39









EirikEirik

1,36621434




1,36621434





bumped to the homepage by Community 14 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







bumped to the homepage by Community 14 hours ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.














  • Is this new order email?

    – Konstantin Gerasimov
    May 2 '17 at 1:24











  • No, I'm trying to include an unsubscribe link inside the subscription confirmation email to keep a client compliant in their country's electronic communication laws. Something along the lines of "You can unsubscribe at anytime using the following link".

    – Eirik
    May 2 '17 at 3:36












  • Create object of MagentoNewsletterModelSubscriber & call getUnsubscriptionLink function

    – Ankit Shah
    May 2 '17 at 9:10


















  • Is this new order email?

    – Konstantin Gerasimov
    May 2 '17 at 1:24











  • No, I'm trying to include an unsubscribe link inside the subscription confirmation email to keep a client compliant in their country's electronic communication laws. Something along the lines of "You can unsubscribe at anytime using the following link".

    – Eirik
    May 2 '17 at 3:36












  • Create object of MagentoNewsletterModelSubscriber & call getUnsubscriptionLink function

    – Ankit Shah
    May 2 '17 at 9:10

















Is this new order email?

– Konstantin Gerasimov
May 2 '17 at 1:24





Is this new order email?

– Konstantin Gerasimov
May 2 '17 at 1:24













No, I'm trying to include an unsubscribe link inside the subscription confirmation email to keep a client compliant in their country's electronic communication laws. Something along the lines of "You can unsubscribe at anytime using the following link".

– Eirik
May 2 '17 at 3:36






No, I'm trying to include an unsubscribe link inside the subscription confirmation email to keep a client compliant in their country's electronic communication laws. Something along the lines of "You can unsubscribe at anytime using the following link".

– Eirik
May 2 '17 at 3:36














Create object of MagentoNewsletterModelSubscriber & call getUnsubscriptionLink function

– Ankit Shah
May 2 '17 at 9:10






Create object of MagentoNewsletterModelSubscriber & call getUnsubscriptionLink function

– Ankit Shah
May 2 '17 at 9:10











1 Answer
1






active

oldest

votes


















0














it's working for me.



<a href="var subscriber.getUnsubscriptionLink()">Unsubscribe</a>





share|improve this answer























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f172514%2fmagento-2-how-to-include-unsubscribe-link-in-transaction-email%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    it's working for me.



    <a href="var subscriber.getUnsubscriptionLink()">Unsubscribe</a>





    share|improve this answer



























      0














      it's working for me.



      <a href="var subscriber.getUnsubscriptionLink()">Unsubscribe</a>





      share|improve this answer

























        0












        0








        0







        it's working for me.



        <a href="var subscriber.getUnsubscriptionLink()">Unsubscribe</a>





        share|improve this answer













        it's working for me.



        <a href="var subscriber.getUnsubscriptionLink()">Unsubscribe</a>






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Feb 26 at 6:50









        Nangyial AhmadNangyial Ahmad

        313




        313



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f172514%2fmagento-2-how-to-include-unsubscribe-link-in-transaction-email%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Magento 2.3: How do i solve this, Not registered handle, on custom form?How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form