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

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

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?