Disable welcome email at first loginAuto-login from customer emailTransactional emails are sent to my client...

Why avoid shared user accounts?

What is this metal M-shaped device for?

Why exactly do action photographers need high fps burst cameras?

Roman Numerals equation 1

Why would the Pakistan airspace closure cancel flights not headed to Pakistan itself?

If I delete my router's history can my ISP still provide it to my parents?

Traveling through the asteriod belt?

Is it a fallacy if someone claims they need an explanation for every word of your argument to the point where they don't understand common terms?

Am I a Rude Number?

What is 6÷2×(1+2) =?

Caruana vs Carlsen game 10 (WCC) why not 18...Nxb6?

What is the purpose of easy combat scenarios that don't need resource expenditure?

How should I handle players who ignore the session zero agreement?

How long is the D&D Starter Set campaign?

How to prevent cleaner from hanging my lock screen in Ubuntu 16.04

Cookies - Should the toggles be on?

Why do stocks necessarily drop during a recession?

Can a hotel cancel a confirmed reservation?

Why "Points exist" is not an axiom in Geometry

It took me a lot of time to make this, pls like. (YouTube Comments #1)

Intern applicant asking for compensation equivalent to that of permanent employee

Why did Luke use his left hand to shoot?

Difference between `vector<int> v;` and `vector<int> v = vector<int>();`

Can I string the D&D Starter Set campaign into another module, keeping the same characters?



Disable welcome email at first login


Auto-login from customer emailTransactional emails are sent to my client after placing an order, but not to the customers. Why?Get customer first name on review request transactional emailMagento 2.1.0 Cron.php fatal error + Mail not sent to admin notifying about new orderMagento 2 Multi-site second site domain not workingMagento2 Welcome EmailWelcome Mail send with wrong store_iddisable welcome emailWelcome Email 1.9 disable sending this emailDKIM body signing issues on Magento emails













1















I've been trying to disable the welcome email for users who login to my Magento webshop for the first time. After some debugging and back-end configuration changes I couldn't quite figure out how to do this.



The important thing I don't want to happen is that the user wont receive the confirmation email with his username and password.










share|improve this question





























    1















    I've been trying to disable the welcome email for users who login to my Magento webshop for the first time. After some debugging and back-end configuration changes I couldn't quite figure out how to do this.



    The important thing I don't want to happen is that the user wont receive the confirmation email with his username and password.










    share|improve this question



























      1












      1








      1








      I've been trying to disable the welcome email for users who login to my Magento webshop for the first time. After some debugging and back-end configuration changes I couldn't quite figure out how to do this.



      The important thing I don't want to happen is that the user wont receive the confirmation email with his username and password.










      share|improve this question
















      I've been trying to disable the welcome email for users who login to my Magento webshop for the first time. After some debugging and back-end configuration changes I couldn't quite figure out how to do this.



      The important thing I don't want to happen is that the user wont receive the confirmation email with his username and password.







      email transactional-mail registry






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 17 mins ago









      Teja Bhagavan Kollepara

      2,96341847




      2,96341847










      asked Dec 19 '13 at 10:44









      wpoortmanwpoortman

      4717




      4717






















          3 Answers
          3






          active

          oldest

          votes


















          0














          I think you want to disable the new account email, if that is the case you can try following:



          Edit




          app/code/core/Mage/Adminhtml/Model/Sales/Order/Create.php




          and just comment the following



          /*if (! $quote->getCustomer()->getId() || ! $quote->getCustomer()->isInStore($this->getSession()->getStore())) {
          $quote->getCustomer()->sendNewAccountEmail('registered', '', $quote->getStoreId());
          }*/


          Then this:



          //$this->_customer->sendNewAccountEmail(); 


          Lastly:



          //$customer->sendNewAccountEmail(); 


          Hopefully it helps






          share|improve this answer
























          • Hi user6451, I figured it out myself after a couple of hours researching and debugging. I forgot to answer my own post and there by I now checked your answer as the correct one. Thanks for your time!

            – wpoortman
            May 19 '14 at 13:38











          • You are welcome

            – TBI Infotech
            May 19 '14 at 13:39






          • 1





            There are better solutions than editing the Core. Also this solution would only cover the email being sent when the account is created when placing an order from the admin not if the customer registers themselves through the frontend.

            – Kristof at Fooman
            Mar 15 '16 at 23:59



















          4














          You can rewrite the method Mage_Customer_Model_Customer::sendNewAccountEmail and just make it return something without any other actions.






          share|improve this answer
























          • I've seen the method but wasn't sure if this also included the confirmation email with the two user credentials. If you tell me that's not the case here... I will rewrite it and thank you for your help.

            – wpoortman
            Dec 19 '13 at 10:56











          • I can tell you for sure that the method is used to send the e-mail to the customers when they create an account.

            – Marius
            Dec 19 '13 at 11:08











          • That's what I'm trying to prevent. The only thing I want to disable is the e-mail which get send after the customer log's into his account for the first time.

            – wpoortman
            Dec 19 '13 at 11:11











          • The customer does not get an email when logging in (as far as I know). Only for registering, and confirming his account (if the option is enabled)

            – Marius
            Dec 19 '13 at 11:13











          • I totally agree with you and I found it strange because it my first Magento shop where I get it. I've disabled the confirmation and tried it with multiple time delays between registration and logging in. But every time I end up with an e-mail right after I log for the first time. I want to add that I'm talking about Magento version 1.5.1.0.

            – wpoortman
            Dec 19 '13 at 11:21





















          3














          Copy: app/code/core/Mage/Customer/Model/Customer.php



          TO: app/code/local/Mage/Customer/Model/Customer.php



          In the function "sendNewAccountEmail" (around line 561), comment out the last 2 lines that perform the actual sending:



          public function sendNewAccountEmail($type = 'registered', $backUrl = '', $storeId = '0')
          {


          $types = array(
          'registered' => self::XML_PATH_REGISTER_EMAIL_TEMPLATE, // welcome email, when confirmation is disabled


          'confirmed' => self::XML_PATH_CONFIRMED_EMAIL_TEMPLATE, // welcome email, when confirmation is enabled


          'confirmation' => self::XML_PATH_CONFIRM_EMAIL_TEMPLATE, // email with confirmation link
          );


          if (!isset($types[$type])) {


          Mage::throwException(Mage::helper('customer')->__('Wrong transactional account email type'));
          }

          if (!$storeId) {
          $storeId = $this->_getWebsiteStoreId($this->getSendemailStoreId());


          }


          **// $this->_sendEmailTemplate($types[$type], self::XML_PATH_REGISTER_EMAIL_IDENTITY,**


          **// array('customer' => $this, 'back_url' => $backUrl), $storeId);**


          return $this;
          }





          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%2f12098%2fdisable-welcome-email-at-first-login%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            3 Answers
            3






            active

            oldest

            votes








            3 Answers
            3






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I think you want to disable the new account email, if that is the case you can try following:



            Edit




            app/code/core/Mage/Adminhtml/Model/Sales/Order/Create.php




            and just comment the following



            /*if (! $quote->getCustomer()->getId() || ! $quote->getCustomer()->isInStore($this->getSession()->getStore())) {
            $quote->getCustomer()->sendNewAccountEmail('registered', '', $quote->getStoreId());
            }*/


            Then this:



            //$this->_customer->sendNewAccountEmail(); 


            Lastly:



            //$customer->sendNewAccountEmail(); 


            Hopefully it helps






            share|improve this answer
























            • Hi user6451, I figured it out myself after a couple of hours researching and debugging. I forgot to answer my own post and there by I now checked your answer as the correct one. Thanks for your time!

              – wpoortman
              May 19 '14 at 13:38











            • You are welcome

              – TBI Infotech
              May 19 '14 at 13:39






            • 1





              There are better solutions than editing the Core. Also this solution would only cover the email being sent when the account is created when placing an order from the admin not if the customer registers themselves through the frontend.

              – Kristof at Fooman
              Mar 15 '16 at 23:59
















            0














            I think you want to disable the new account email, if that is the case you can try following:



            Edit




            app/code/core/Mage/Adminhtml/Model/Sales/Order/Create.php




            and just comment the following



            /*if (! $quote->getCustomer()->getId() || ! $quote->getCustomer()->isInStore($this->getSession()->getStore())) {
            $quote->getCustomer()->sendNewAccountEmail('registered', '', $quote->getStoreId());
            }*/


            Then this:



            //$this->_customer->sendNewAccountEmail(); 


            Lastly:



            //$customer->sendNewAccountEmail(); 


            Hopefully it helps






            share|improve this answer
























            • Hi user6451, I figured it out myself after a couple of hours researching and debugging. I forgot to answer my own post and there by I now checked your answer as the correct one. Thanks for your time!

              – wpoortman
              May 19 '14 at 13:38











            • You are welcome

              – TBI Infotech
              May 19 '14 at 13:39






            • 1





              There are better solutions than editing the Core. Also this solution would only cover the email being sent when the account is created when placing an order from the admin not if the customer registers themselves through the frontend.

              – Kristof at Fooman
              Mar 15 '16 at 23:59














            0












            0








            0







            I think you want to disable the new account email, if that is the case you can try following:



            Edit




            app/code/core/Mage/Adminhtml/Model/Sales/Order/Create.php




            and just comment the following



            /*if (! $quote->getCustomer()->getId() || ! $quote->getCustomer()->isInStore($this->getSession()->getStore())) {
            $quote->getCustomer()->sendNewAccountEmail('registered', '', $quote->getStoreId());
            }*/


            Then this:



            //$this->_customer->sendNewAccountEmail(); 


            Lastly:



            //$customer->sendNewAccountEmail(); 


            Hopefully it helps






            share|improve this answer













            I think you want to disable the new account email, if that is the case you can try following:



            Edit




            app/code/core/Mage/Adminhtml/Model/Sales/Order/Create.php




            and just comment the following



            /*if (! $quote->getCustomer()->getId() || ! $quote->getCustomer()->isInStore($this->getSession()->getStore())) {
            $quote->getCustomer()->sendNewAccountEmail('registered', '', $quote->getStoreId());
            }*/


            Then this:



            //$this->_customer->sendNewAccountEmail(); 


            Lastly:



            //$customer->sendNewAccountEmail(); 


            Hopefully it helps







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 19 '14 at 8:47









            TBI InfotechTBI Infotech

            4,5771830




            4,5771830













            • Hi user6451, I figured it out myself after a couple of hours researching and debugging. I forgot to answer my own post and there by I now checked your answer as the correct one. Thanks for your time!

              – wpoortman
              May 19 '14 at 13:38











            • You are welcome

              – TBI Infotech
              May 19 '14 at 13:39






            • 1





              There are better solutions than editing the Core. Also this solution would only cover the email being sent when the account is created when placing an order from the admin not if the customer registers themselves through the frontend.

              – Kristof at Fooman
              Mar 15 '16 at 23:59



















            • Hi user6451, I figured it out myself after a couple of hours researching and debugging. I forgot to answer my own post and there by I now checked your answer as the correct one. Thanks for your time!

              – wpoortman
              May 19 '14 at 13:38











            • You are welcome

              – TBI Infotech
              May 19 '14 at 13:39






            • 1





              There are better solutions than editing the Core. Also this solution would only cover the email being sent when the account is created when placing an order from the admin not if the customer registers themselves through the frontend.

              – Kristof at Fooman
              Mar 15 '16 at 23:59

















            Hi user6451, I figured it out myself after a couple of hours researching and debugging. I forgot to answer my own post and there by I now checked your answer as the correct one. Thanks for your time!

            – wpoortman
            May 19 '14 at 13:38





            Hi user6451, I figured it out myself after a couple of hours researching and debugging. I forgot to answer my own post and there by I now checked your answer as the correct one. Thanks for your time!

            – wpoortman
            May 19 '14 at 13:38













            You are welcome

            – TBI Infotech
            May 19 '14 at 13:39





            You are welcome

            – TBI Infotech
            May 19 '14 at 13:39




            1




            1





            There are better solutions than editing the Core. Also this solution would only cover the email being sent when the account is created when placing an order from the admin not if the customer registers themselves through the frontend.

            – Kristof at Fooman
            Mar 15 '16 at 23:59





            There are better solutions than editing the Core. Also this solution would only cover the email being sent when the account is created when placing an order from the admin not if the customer registers themselves through the frontend.

            – Kristof at Fooman
            Mar 15 '16 at 23:59













            4














            You can rewrite the method Mage_Customer_Model_Customer::sendNewAccountEmail and just make it return something without any other actions.






            share|improve this answer
























            • I've seen the method but wasn't sure if this also included the confirmation email with the two user credentials. If you tell me that's not the case here... I will rewrite it and thank you for your help.

              – wpoortman
              Dec 19 '13 at 10:56











            • I can tell you for sure that the method is used to send the e-mail to the customers when they create an account.

              – Marius
              Dec 19 '13 at 11:08











            • That's what I'm trying to prevent. The only thing I want to disable is the e-mail which get send after the customer log's into his account for the first time.

              – wpoortman
              Dec 19 '13 at 11:11











            • The customer does not get an email when logging in (as far as I know). Only for registering, and confirming his account (if the option is enabled)

              – Marius
              Dec 19 '13 at 11:13











            • I totally agree with you and I found it strange because it my first Magento shop where I get it. I've disabled the confirmation and tried it with multiple time delays between registration and logging in. But every time I end up with an e-mail right after I log for the first time. I want to add that I'm talking about Magento version 1.5.1.0.

              – wpoortman
              Dec 19 '13 at 11:21


















            4














            You can rewrite the method Mage_Customer_Model_Customer::sendNewAccountEmail and just make it return something without any other actions.






            share|improve this answer
























            • I've seen the method but wasn't sure if this also included the confirmation email with the two user credentials. If you tell me that's not the case here... I will rewrite it and thank you for your help.

              – wpoortman
              Dec 19 '13 at 10:56











            • I can tell you for sure that the method is used to send the e-mail to the customers when they create an account.

              – Marius
              Dec 19 '13 at 11:08











            • That's what I'm trying to prevent. The only thing I want to disable is the e-mail which get send after the customer log's into his account for the first time.

              – wpoortman
              Dec 19 '13 at 11:11











            • The customer does not get an email when logging in (as far as I know). Only for registering, and confirming his account (if the option is enabled)

              – Marius
              Dec 19 '13 at 11:13











            • I totally agree with you and I found it strange because it my first Magento shop where I get it. I've disabled the confirmation and tried it with multiple time delays between registration and logging in. But every time I end up with an e-mail right after I log for the first time. I want to add that I'm talking about Magento version 1.5.1.0.

              – wpoortman
              Dec 19 '13 at 11:21
















            4












            4








            4







            You can rewrite the method Mage_Customer_Model_Customer::sendNewAccountEmail and just make it return something without any other actions.






            share|improve this answer













            You can rewrite the method Mage_Customer_Model_Customer::sendNewAccountEmail and just make it return something without any other actions.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 19 '13 at 10:52









            MariusMarius

            166k28317677




            166k28317677













            • I've seen the method but wasn't sure if this also included the confirmation email with the two user credentials. If you tell me that's not the case here... I will rewrite it and thank you for your help.

              – wpoortman
              Dec 19 '13 at 10:56











            • I can tell you for sure that the method is used to send the e-mail to the customers when they create an account.

              – Marius
              Dec 19 '13 at 11:08











            • That's what I'm trying to prevent. The only thing I want to disable is the e-mail which get send after the customer log's into his account for the first time.

              – wpoortman
              Dec 19 '13 at 11:11











            • The customer does not get an email when logging in (as far as I know). Only for registering, and confirming his account (if the option is enabled)

              – Marius
              Dec 19 '13 at 11:13











            • I totally agree with you and I found it strange because it my first Magento shop where I get it. I've disabled the confirmation and tried it with multiple time delays between registration and logging in. But every time I end up with an e-mail right after I log for the first time. I want to add that I'm talking about Magento version 1.5.1.0.

              – wpoortman
              Dec 19 '13 at 11:21





















            • I've seen the method but wasn't sure if this also included the confirmation email with the two user credentials. If you tell me that's not the case here... I will rewrite it and thank you for your help.

              – wpoortman
              Dec 19 '13 at 10:56











            • I can tell you for sure that the method is used to send the e-mail to the customers when they create an account.

              – Marius
              Dec 19 '13 at 11:08











            • That's what I'm trying to prevent. The only thing I want to disable is the e-mail which get send after the customer log's into his account for the first time.

              – wpoortman
              Dec 19 '13 at 11:11











            • The customer does not get an email when logging in (as far as I know). Only for registering, and confirming his account (if the option is enabled)

              – Marius
              Dec 19 '13 at 11:13











            • I totally agree with you and I found it strange because it my first Magento shop where I get it. I've disabled the confirmation and tried it with multiple time delays between registration and logging in. But every time I end up with an e-mail right after I log for the first time. I want to add that I'm talking about Magento version 1.5.1.0.

              – wpoortman
              Dec 19 '13 at 11:21



















            I've seen the method but wasn't sure if this also included the confirmation email with the two user credentials. If you tell me that's not the case here... I will rewrite it and thank you for your help.

            – wpoortman
            Dec 19 '13 at 10:56





            I've seen the method but wasn't sure if this also included the confirmation email with the two user credentials. If you tell me that's not the case here... I will rewrite it and thank you for your help.

            – wpoortman
            Dec 19 '13 at 10:56













            I can tell you for sure that the method is used to send the e-mail to the customers when they create an account.

            – Marius
            Dec 19 '13 at 11:08





            I can tell you for sure that the method is used to send the e-mail to the customers when they create an account.

            – Marius
            Dec 19 '13 at 11:08













            That's what I'm trying to prevent. The only thing I want to disable is the e-mail which get send after the customer log's into his account for the first time.

            – wpoortman
            Dec 19 '13 at 11:11





            That's what I'm trying to prevent. The only thing I want to disable is the e-mail which get send after the customer log's into his account for the first time.

            – wpoortman
            Dec 19 '13 at 11:11













            The customer does not get an email when logging in (as far as I know). Only for registering, and confirming his account (if the option is enabled)

            – Marius
            Dec 19 '13 at 11:13





            The customer does not get an email when logging in (as far as I know). Only for registering, and confirming his account (if the option is enabled)

            – Marius
            Dec 19 '13 at 11:13













            I totally agree with you and I found it strange because it my first Magento shop where I get it. I've disabled the confirmation and tried it with multiple time delays between registration and logging in. But every time I end up with an e-mail right after I log for the first time. I want to add that I'm talking about Magento version 1.5.1.0.

            – wpoortman
            Dec 19 '13 at 11:21







            I totally agree with you and I found it strange because it my first Magento shop where I get it. I've disabled the confirmation and tried it with multiple time delays between registration and logging in. But every time I end up with an e-mail right after I log for the first time. I want to add that I'm talking about Magento version 1.5.1.0.

            – wpoortman
            Dec 19 '13 at 11:21













            3














            Copy: app/code/core/Mage/Customer/Model/Customer.php



            TO: app/code/local/Mage/Customer/Model/Customer.php



            In the function "sendNewAccountEmail" (around line 561), comment out the last 2 lines that perform the actual sending:



            public function sendNewAccountEmail($type = 'registered', $backUrl = '', $storeId = '0')
            {


            $types = array(
            'registered' => self::XML_PATH_REGISTER_EMAIL_TEMPLATE, // welcome email, when confirmation is disabled


            'confirmed' => self::XML_PATH_CONFIRMED_EMAIL_TEMPLATE, // welcome email, when confirmation is enabled


            'confirmation' => self::XML_PATH_CONFIRM_EMAIL_TEMPLATE, // email with confirmation link
            );


            if (!isset($types[$type])) {


            Mage::throwException(Mage::helper('customer')->__('Wrong transactional account email type'));
            }

            if (!$storeId) {
            $storeId = $this->_getWebsiteStoreId($this->getSendemailStoreId());


            }


            **// $this->_sendEmailTemplate($types[$type], self::XML_PATH_REGISTER_EMAIL_IDENTITY,**


            **// array('customer' => $this, 'back_url' => $backUrl), $storeId);**


            return $this;
            }





            share|improve this answer






























              3














              Copy: app/code/core/Mage/Customer/Model/Customer.php



              TO: app/code/local/Mage/Customer/Model/Customer.php



              In the function "sendNewAccountEmail" (around line 561), comment out the last 2 lines that perform the actual sending:



              public function sendNewAccountEmail($type = 'registered', $backUrl = '', $storeId = '0')
              {


              $types = array(
              'registered' => self::XML_PATH_REGISTER_EMAIL_TEMPLATE, // welcome email, when confirmation is disabled


              'confirmed' => self::XML_PATH_CONFIRMED_EMAIL_TEMPLATE, // welcome email, when confirmation is enabled


              'confirmation' => self::XML_PATH_CONFIRM_EMAIL_TEMPLATE, // email with confirmation link
              );


              if (!isset($types[$type])) {


              Mage::throwException(Mage::helper('customer')->__('Wrong transactional account email type'));
              }

              if (!$storeId) {
              $storeId = $this->_getWebsiteStoreId($this->getSendemailStoreId());


              }


              **// $this->_sendEmailTemplate($types[$type], self::XML_PATH_REGISTER_EMAIL_IDENTITY,**


              **// array('customer' => $this, 'back_url' => $backUrl), $storeId);**


              return $this;
              }





              share|improve this answer




























                3












                3








                3







                Copy: app/code/core/Mage/Customer/Model/Customer.php



                TO: app/code/local/Mage/Customer/Model/Customer.php



                In the function "sendNewAccountEmail" (around line 561), comment out the last 2 lines that perform the actual sending:



                public function sendNewAccountEmail($type = 'registered', $backUrl = '', $storeId = '0')
                {


                $types = array(
                'registered' => self::XML_PATH_REGISTER_EMAIL_TEMPLATE, // welcome email, when confirmation is disabled


                'confirmed' => self::XML_PATH_CONFIRMED_EMAIL_TEMPLATE, // welcome email, when confirmation is enabled


                'confirmation' => self::XML_PATH_CONFIRM_EMAIL_TEMPLATE, // email with confirmation link
                );


                if (!isset($types[$type])) {


                Mage::throwException(Mage::helper('customer')->__('Wrong transactional account email type'));
                }

                if (!$storeId) {
                $storeId = $this->_getWebsiteStoreId($this->getSendemailStoreId());


                }


                **// $this->_sendEmailTemplate($types[$type], self::XML_PATH_REGISTER_EMAIL_IDENTITY,**


                **// array('customer' => $this, 'back_url' => $backUrl), $storeId);**


                return $this;
                }





                share|improve this answer















                Copy: app/code/core/Mage/Customer/Model/Customer.php



                TO: app/code/local/Mage/Customer/Model/Customer.php



                In the function "sendNewAccountEmail" (around line 561), comment out the last 2 lines that perform the actual sending:



                public function sendNewAccountEmail($type = 'registered', $backUrl = '', $storeId = '0')
                {


                $types = array(
                'registered' => self::XML_PATH_REGISTER_EMAIL_TEMPLATE, // welcome email, when confirmation is disabled


                'confirmed' => self::XML_PATH_CONFIRMED_EMAIL_TEMPLATE, // welcome email, when confirmation is enabled


                'confirmation' => self::XML_PATH_CONFIRM_EMAIL_TEMPLATE, // email with confirmation link
                );


                if (!isset($types[$type])) {


                Mage::throwException(Mage::helper('customer')->__('Wrong transactional account email type'));
                }

                if (!$storeId) {
                $storeId = $this->_getWebsiteStoreId($this->getSendemailStoreId());


                }


                **// $this->_sendEmailTemplate($types[$type], self::XML_PATH_REGISTER_EMAIL_IDENTITY,**


                **// array('customer' => $this, 'back_url' => $backUrl), $storeId);**


                return $this;
                }






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Dec 15 '15 at 9:49









                Marius

                166k28317677




                166k28317677










                answered Dec 15 '15 at 9:43









                Sheikh WasimSheikh Wasim

                365




                365






























                    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%2f12098%2fdisable-welcome-email-at-first-login%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

                    “%fieldName is a required field.”, in Magento2 REST API Call for GET Method Type The Next...

                    How to change City field to a dropdown in Checkout step Magento 2Magento 2 : How to change UI field(s)...

                    夢乃愛華...