Add BCC in Shipment Email Magento 2How magento 1.7 creates new shipment from admin area?Order does not exist, for the Shipment process to completethe shipment email is not sentMagento Order Shipment Email not sending - Instead we are sending the Shipment Update EmailMagento event to observe shipment creation, not invoiceSOLVED Including comment in programmatically sent out Shipment EmailMagento 2 Send email of order place from observer ?Magento2: How to add tracking url in shipment email for customer in magento 2Magento 2 How can i add BCC to order email with observer programatically?Cannot send tracking number in shipment email when creating shipment from API

Returning strings showing all vertices from all polygons in shapefile using ArcPy?

How should one refer to knights (& dames) in academic writing?

What impact would a dragon the size of Asia have on the environment?

Can I remove the doors before installing a sliding patio doors frame?

Is it rude to refer to janitors as 'floor people'?

What is the word for "event executor"?

How Efficient Could Anaerobic Megafauna Be?

Interviewing with an unmentioned 9 months of sick leave taken during a job

Cauchy reals and Dedekind reals satisfy "the same mathematical theorems"

Alternator dying so junk car?

Why is Katakana not pronounced Katagana?

FPGA CPU's, how to find the max speed?

Animal Shelter Management C++

Fantasy Story About A Boy And Girl That Enter A Fantasy World Pre-1994

Did 007 exist before James Bond?

How Can I Process Untrusted Data Sources Securely?

How could an animal "smell" carbon monoxide?

Cine footage fron Saturn V launch's

Unix chat server making communication between terminals possible

A scene of Jimmy diversity

Representations of secret keys on Curve25519

Snaking a clogged tub drain

Will a contempt of congress lawsuit actually reach the merits?

How fast does a character need to move to be effectively invisible?



Add BCC in Shipment Email Magento 2


How magento 1.7 creates new shipment from admin area?Order does not exist, for the Shipment process to completethe shipment email is not sentMagento Order Shipment Email not sending - Instead we are sending the Shipment Update EmailMagento event to observe shipment creation, not invoiceSOLVED Including comment in programmatically sent out Shipment EmailMagento 2 Send email of order place from observer ?Magento2: How to add tracking url in shipment email for customer in magento 2Magento 2 How can i add BCC to order email with observer programatically?Cannot send tracking number in shipment email when creating shipment from API






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0
















Is there any Event or Observer to Add BCC in Shipment Email
Programmatically




Task Is Shipment Mail Send 2 Person 1st is customer and 2nd is dynamic email



Please Provide me Suggestion How To Add Programmatically BCC in Shipment Email ?



How Can I Do This ??










share|improve this question






























    0
















    Is there any Event or Observer to Add BCC in Shipment Email
    Programmatically




    Task Is Shipment Mail Send 2 Person 1st is customer and 2nd is dynamic email



    Please Provide me Suggestion How To Add Programmatically BCC in Shipment Email ?



    How Can I Do This ??










    share|improve this question


























      0












      0








      0









      Is there any Event or Observer to Add BCC in Shipment Email
      Programmatically




      Task Is Shipment Mail Send 2 Person 1st is customer and 2nd is dynamic email



      Please Provide me Suggestion How To Add Programmatically BCC in Shipment Email ?



      How Can I Do This ??










      share|improve this question

















      Is there any Event or Observer to Add BCC in Shipment Email
      Programmatically




      Task Is Shipment Mail Send 2 Person 1st is customer and 2nd is dynamic email



      Please Provide me Suggestion How To Add Programmatically BCC in Shipment Email ?



      How Can I Do This ??







      magento2 event-observer email shipment






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Jul 9 at 7:31







      Rk Rathod

















      asked Jul 8 at 12:25









      Rk RathodRk Rathod

      2,6603 silver badges23 bronze badges




      2,6603 silver badges23 bronze badges




















          3 Answers
          3






          active

          oldest

          votes


















          1














          You can add it in configuration



          • On the Admin Panel, Stores > Settings > Configuration.

          • On the left panel, under Sales tab, click on Sales Emails subtab.

          • Open the shipment section

          • Add email or comma separated email in 'Send Shipment Email Copy To'

          If you want to customise this beyond configuration you are changing this:



          https://github.com/magento/magento2/blob/2.3/app/code/Magento/Sales/Model/Order/Email/Container/ShipmentIdentity.php#L40-L47



          So observer or plugin (Interceptor) - not event.



          https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html



          https://devdocs.magento.com/guides/v2.3/extension-dev-guide/events-and-observers.html



          Here is a suggestion on how to go Plugin Route



          XigenOverride



          etc/di.xml



          <?xml version="1.0" ?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoSalesModelOrderEmailContainerShipmentIdentity">
          <plugin disabled="false" name="Xigen_Override_Plugin_Magento_Sales_Model_Order_Email_Container_ShipmentIdentity" sortOrder="10" type="XigenOverridePluginMagentoSalesModelOrderEmailContainerShipmentIdentity"/>
          </type>
          </config>


          Plugin/Magento/Sales/Model/Order/Email/Container/ShipmentIdentity.php



          namespace XigenOverridePluginMagentoSalesModelOrderEmailContainer;

          class ShipmentIdentity


          public function afterGetEmailCopyTo(
          MagentoSalesModelOrderEmailContainerShipmentIdentity $subject,
          $result
          )
          //Your plugin code
          return $result;







          share|improve this answer

























          • i want to add bcc Programmatically

            – Rk Rathod
            Jul 8 at 12:54











          • Try plugin route

            – Dominic Xigen
            Jul 8 at 12:59











          • please explain how to use plugin route

            – Rk Rathod
            Jul 8 at 13:00











          • I have updated answer

            – Dominic Xigen
            Jul 8 at 13:04











          • i will check and update soon

            – Rk Rathod
            Jul 8 at 13:05


















          1














          you can use this event "email_invoice_set_template_vars_before" and you can also find more events here :



          https://www.magestore.com/magento-2-tutorial/use-event-magento-2






          share|improve this answer























          • please explain briefly and i want to add bcc in shipment email

            – Rk Rathod
            Jul 8 at 12:55











          • as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

            – Rk Rathod
            Jul 9 at 7:28












          • 1+ for response

            – Rk Rathod
            Jul 9 at 8:06


















          1














          You can managed to work it by following code:



          Step 1: Create a module with name Vendor_Module and do the following changes.



          Step 2: create di.xml under




          app/code/Vendor/Module/etc/di.xml




          with content:



          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoSalesModelOrderEmailSenderShipmentSender" type="VendorModuleModelOrderEmailSenderShipmentSender" />
          </config>


          Step 3: Create SenderBuilder.php under




          app/code/Vendor/Module/Model/Order/Email/Sender/ShipmentSender.php




          with content:



          <?php

          namespace VendorModuleModelOrderEmailSender;


          class ShipmentSender extends MagentoSalesModelOrderEmailSenderShipmentSender


          public function send(Shipment $shipment, $forceSyncMode = false)

          //do your logic




          And then run required commands
          bin/magento setup:upgrade
          bin/magento setup:di:compile
          bin/magento setup:static-content:deploy
          bin/magento cache:clean.
          You can modify the codes according to your requirement.



          Note: Above codes are not Tested but it should work.






          share|improve this answer























          • i will check and update soon

            – Rk Rathod
            Jul 8 at 13:17











          • as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

            – Rk Rathod
            Jul 9 at 7:28












          • 1+ for response

            – Rk Rathod
            Jul 9 at 8:06













          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%2f281208%2fadd-bcc-in-shipment-email-magento-2%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









          1














          You can add it in configuration



          • On the Admin Panel, Stores > Settings > Configuration.

          • On the left panel, under Sales tab, click on Sales Emails subtab.

          • Open the shipment section

          • Add email or comma separated email in 'Send Shipment Email Copy To'

          If you want to customise this beyond configuration you are changing this:



          https://github.com/magento/magento2/blob/2.3/app/code/Magento/Sales/Model/Order/Email/Container/ShipmentIdentity.php#L40-L47



          So observer or plugin (Interceptor) - not event.



          https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html



          https://devdocs.magento.com/guides/v2.3/extension-dev-guide/events-and-observers.html



          Here is a suggestion on how to go Plugin Route



          XigenOverride



          etc/di.xml



          <?xml version="1.0" ?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoSalesModelOrderEmailContainerShipmentIdentity">
          <plugin disabled="false" name="Xigen_Override_Plugin_Magento_Sales_Model_Order_Email_Container_ShipmentIdentity" sortOrder="10" type="XigenOverridePluginMagentoSalesModelOrderEmailContainerShipmentIdentity"/>
          </type>
          </config>


          Plugin/Magento/Sales/Model/Order/Email/Container/ShipmentIdentity.php



          namespace XigenOverridePluginMagentoSalesModelOrderEmailContainer;

          class ShipmentIdentity


          public function afterGetEmailCopyTo(
          MagentoSalesModelOrderEmailContainerShipmentIdentity $subject,
          $result
          )
          //Your plugin code
          return $result;







          share|improve this answer

























          • i want to add bcc Programmatically

            – Rk Rathod
            Jul 8 at 12:54











          • Try plugin route

            – Dominic Xigen
            Jul 8 at 12:59











          • please explain how to use plugin route

            – Rk Rathod
            Jul 8 at 13:00











          • I have updated answer

            – Dominic Xigen
            Jul 8 at 13:04











          • i will check and update soon

            – Rk Rathod
            Jul 8 at 13:05















          1














          You can add it in configuration



          • On the Admin Panel, Stores > Settings > Configuration.

          • On the left panel, under Sales tab, click on Sales Emails subtab.

          • Open the shipment section

          • Add email or comma separated email in 'Send Shipment Email Copy To'

          If you want to customise this beyond configuration you are changing this:



          https://github.com/magento/magento2/blob/2.3/app/code/Magento/Sales/Model/Order/Email/Container/ShipmentIdentity.php#L40-L47



          So observer or plugin (Interceptor) - not event.



          https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html



          https://devdocs.magento.com/guides/v2.3/extension-dev-guide/events-and-observers.html



          Here is a suggestion on how to go Plugin Route



          XigenOverride



          etc/di.xml



          <?xml version="1.0" ?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoSalesModelOrderEmailContainerShipmentIdentity">
          <plugin disabled="false" name="Xigen_Override_Plugin_Magento_Sales_Model_Order_Email_Container_ShipmentIdentity" sortOrder="10" type="XigenOverridePluginMagentoSalesModelOrderEmailContainerShipmentIdentity"/>
          </type>
          </config>


          Plugin/Magento/Sales/Model/Order/Email/Container/ShipmentIdentity.php



          namespace XigenOverridePluginMagentoSalesModelOrderEmailContainer;

          class ShipmentIdentity


          public function afterGetEmailCopyTo(
          MagentoSalesModelOrderEmailContainerShipmentIdentity $subject,
          $result
          )
          //Your plugin code
          return $result;







          share|improve this answer

























          • i want to add bcc Programmatically

            – Rk Rathod
            Jul 8 at 12:54











          • Try plugin route

            – Dominic Xigen
            Jul 8 at 12:59











          • please explain how to use plugin route

            – Rk Rathod
            Jul 8 at 13:00











          • I have updated answer

            – Dominic Xigen
            Jul 8 at 13:04











          • i will check and update soon

            – Rk Rathod
            Jul 8 at 13:05













          1












          1








          1







          You can add it in configuration



          • On the Admin Panel, Stores > Settings > Configuration.

          • On the left panel, under Sales tab, click on Sales Emails subtab.

          • Open the shipment section

          • Add email or comma separated email in 'Send Shipment Email Copy To'

          If you want to customise this beyond configuration you are changing this:



          https://github.com/magento/magento2/blob/2.3/app/code/Magento/Sales/Model/Order/Email/Container/ShipmentIdentity.php#L40-L47



          So observer or plugin (Interceptor) - not event.



          https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html



          https://devdocs.magento.com/guides/v2.3/extension-dev-guide/events-and-observers.html



          Here is a suggestion on how to go Plugin Route



          XigenOverride



          etc/di.xml



          <?xml version="1.0" ?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoSalesModelOrderEmailContainerShipmentIdentity">
          <plugin disabled="false" name="Xigen_Override_Plugin_Magento_Sales_Model_Order_Email_Container_ShipmentIdentity" sortOrder="10" type="XigenOverridePluginMagentoSalesModelOrderEmailContainerShipmentIdentity"/>
          </type>
          </config>


          Plugin/Magento/Sales/Model/Order/Email/Container/ShipmentIdentity.php



          namespace XigenOverridePluginMagentoSalesModelOrderEmailContainer;

          class ShipmentIdentity


          public function afterGetEmailCopyTo(
          MagentoSalesModelOrderEmailContainerShipmentIdentity $subject,
          $result
          )
          //Your plugin code
          return $result;







          share|improve this answer















          You can add it in configuration



          • On the Admin Panel, Stores > Settings > Configuration.

          • On the left panel, under Sales tab, click on Sales Emails subtab.

          • Open the shipment section

          • Add email or comma separated email in 'Send Shipment Email Copy To'

          If you want to customise this beyond configuration you are changing this:



          https://github.com/magento/magento2/blob/2.3/app/code/Magento/Sales/Model/Order/Email/Container/ShipmentIdentity.php#L40-L47



          So observer or plugin (Interceptor) - not event.



          https://devdocs.magento.com/guides/v2.3/extension-dev-guide/plugins.html



          https://devdocs.magento.com/guides/v2.3/extension-dev-guide/events-and-observers.html



          Here is a suggestion on how to go Plugin Route



          XigenOverride



          etc/di.xml



          <?xml version="1.0" ?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <type name="MagentoSalesModelOrderEmailContainerShipmentIdentity">
          <plugin disabled="false" name="Xigen_Override_Plugin_Magento_Sales_Model_Order_Email_Container_ShipmentIdentity" sortOrder="10" type="XigenOverridePluginMagentoSalesModelOrderEmailContainerShipmentIdentity"/>
          </type>
          </config>


          Plugin/Magento/Sales/Model/Order/Email/Container/ShipmentIdentity.php



          namespace XigenOverridePluginMagentoSalesModelOrderEmailContainer;

          class ShipmentIdentity


          public function afterGetEmailCopyTo(
          MagentoSalesModelOrderEmailContainerShipmentIdentity $subject,
          $result
          )
          //Your plugin code
          return $result;








          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Jul 8 at 13:04

























          answered Jul 8 at 12:51









          Dominic XigenDominic Xigen

          2,8501 gold badge4 silver badges16 bronze badges




          2,8501 gold badge4 silver badges16 bronze badges












          • i want to add bcc Programmatically

            – Rk Rathod
            Jul 8 at 12:54











          • Try plugin route

            – Dominic Xigen
            Jul 8 at 12:59











          • please explain how to use plugin route

            – Rk Rathod
            Jul 8 at 13:00











          • I have updated answer

            – Dominic Xigen
            Jul 8 at 13:04











          • i will check and update soon

            – Rk Rathod
            Jul 8 at 13:05

















          • i want to add bcc Programmatically

            – Rk Rathod
            Jul 8 at 12:54











          • Try plugin route

            – Dominic Xigen
            Jul 8 at 12:59











          • please explain how to use plugin route

            – Rk Rathod
            Jul 8 at 13:00











          • I have updated answer

            – Dominic Xigen
            Jul 8 at 13:04











          • i will check and update soon

            – Rk Rathod
            Jul 8 at 13:05
















          i want to add bcc Programmatically

          – Rk Rathod
          Jul 8 at 12:54





          i want to add bcc Programmatically

          – Rk Rathod
          Jul 8 at 12:54













          Try plugin route

          – Dominic Xigen
          Jul 8 at 12:59





          Try plugin route

          – Dominic Xigen
          Jul 8 at 12:59













          please explain how to use plugin route

          – Rk Rathod
          Jul 8 at 13:00





          please explain how to use plugin route

          – Rk Rathod
          Jul 8 at 13:00













          I have updated answer

          – Dominic Xigen
          Jul 8 at 13:04





          I have updated answer

          – Dominic Xigen
          Jul 8 at 13:04













          i will check and update soon

          – Rk Rathod
          Jul 8 at 13:05





          i will check and update soon

          – Rk Rathod
          Jul 8 at 13:05













          1














          you can use this event "email_invoice_set_template_vars_before" and you can also find more events here :



          https://www.magestore.com/magento-2-tutorial/use-event-magento-2






          share|improve this answer























          • please explain briefly and i want to add bcc in shipment email

            – Rk Rathod
            Jul 8 at 12:55











          • as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

            – Rk Rathod
            Jul 9 at 7:28












          • 1+ for response

            – Rk Rathod
            Jul 9 at 8:06















          1














          you can use this event "email_invoice_set_template_vars_before" and you can also find more events here :



          https://www.magestore.com/magento-2-tutorial/use-event-magento-2






          share|improve this answer























          • please explain briefly and i want to add bcc in shipment email

            – Rk Rathod
            Jul 8 at 12:55











          • as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

            – Rk Rathod
            Jul 9 at 7:28












          • 1+ for response

            – Rk Rathod
            Jul 9 at 8:06













          1












          1








          1







          you can use this event "email_invoice_set_template_vars_before" and you can also find more events here :



          https://www.magestore.com/magento-2-tutorial/use-event-magento-2






          share|improve this answer













          you can use this event "email_invoice_set_template_vars_before" and you can also find more events here :



          https://www.magestore.com/magento-2-tutorial/use-event-magento-2







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 8 at 12:51









          nikunjnikunj

          1816 bronze badges




          1816 bronze badges












          • please explain briefly and i want to add bcc in shipment email

            – Rk Rathod
            Jul 8 at 12:55











          • as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

            – Rk Rathod
            Jul 9 at 7:28












          • 1+ for response

            – Rk Rathod
            Jul 9 at 8:06

















          • please explain briefly and i want to add bcc in shipment email

            – Rk Rathod
            Jul 8 at 12:55











          • as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

            – Rk Rathod
            Jul 9 at 7:28












          • 1+ for response

            – Rk Rathod
            Jul 9 at 8:06
















          please explain briefly and i want to add bcc in shipment email

          – Rk Rathod
          Jul 8 at 12:55





          please explain briefly and i want to add bcc in shipment email

          – Rk Rathod
          Jul 8 at 12:55













          as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

          – Rk Rathod
          Jul 9 at 7:28






          as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

          – Rk Rathod
          Jul 9 at 7:28














          1+ for response

          – Rk Rathod
          Jul 9 at 8:06





          1+ for response

          – Rk Rathod
          Jul 9 at 8:06











          1














          You can managed to work it by following code:



          Step 1: Create a module with name Vendor_Module and do the following changes.



          Step 2: create di.xml under




          app/code/Vendor/Module/etc/di.xml




          with content:



          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoSalesModelOrderEmailSenderShipmentSender" type="VendorModuleModelOrderEmailSenderShipmentSender" />
          </config>


          Step 3: Create SenderBuilder.php under




          app/code/Vendor/Module/Model/Order/Email/Sender/ShipmentSender.php




          with content:



          <?php

          namespace VendorModuleModelOrderEmailSender;


          class ShipmentSender extends MagentoSalesModelOrderEmailSenderShipmentSender


          public function send(Shipment $shipment, $forceSyncMode = false)

          //do your logic




          And then run required commands
          bin/magento setup:upgrade
          bin/magento setup:di:compile
          bin/magento setup:static-content:deploy
          bin/magento cache:clean.
          You can modify the codes according to your requirement.



          Note: Above codes are not Tested but it should work.






          share|improve this answer























          • i will check and update soon

            – Rk Rathod
            Jul 8 at 13:17











          • as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

            – Rk Rathod
            Jul 9 at 7:28












          • 1+ for response

            – Rk Rathod
            Jul 9 at 8:06















          1














          You can managed to work it by following code:



          Step 1: Create a module with name Vendor_Module and do the following changes.



          Step 2: create di.xml under




          app/code/Vendor/Module/etc/di.xml




          with content:



          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoSalesModelOrderEmailSenderShipmentSender" type="VendorModuleModelOrderEmailSenderShipmentSender" />
          </config>


          Step 3: Create SenderBuilder.php under




          app/code/Vendor/Module/Model/Order/Email/Sender/ShipmentSender.php




          with content:



          <?php

          namespace VendorModuleModelOrderEmailSender;


          class ShipmentSender extends MagentoSalesModelOrderEmailSenderShipmentSender


          public function send(Shipment $shipment, $forceSyncMode = false)

          //do your logic




          And then run required commands
          bin/magento setup:upgrade
          bin/magento setup:di:compile
          bin/magento setup:static-content:deploy
          bin/magento cache:clean.
          You can modify the codes according to your requirement.



          Note: Above codes are not Tested but it should work.






          share|improve this answer























          • i will check and update soon

            – Rk Rathod
            Jul 8 at 13:17











          • as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

            – Rk Rathod
            Jul 9 at 7:28












          • 1+ for response

            – Rk Rathod
            Jul 9 at 8:06













          1












          1








          1







          You can managed to work it by following code:



          Step 1: Create a module with name Vendor_Module and do the following changes.



          Step 2: create di.xml under




          app/code/Vendor/Module/etc/di.xml




          with content:



          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoSalesModelOrderEmailSenderShipmentSender" type="VendorModuleModelOrderEmailSenderShipmentSender" />
          </config>


          Step 3: Create SenderBuilder.php under




          app/code/Vendor/Module/Model/Order/Email/Sender/ShipmentSender.php




          with content:



          <?php

          namespace VendorModuleModelOrderEmailSender;


          class ShipmentSender extends MagentoSalesModelOrderEmailSenderShipmentSender


          public function send(Shipment $shipment, $forceSyncMode = false)

          //do your logic




          And then run required commands
          bin/magento setup:upgrade
          bin/magento setup:di:compile
          bin/magento setup:static-content:deploy
          bin/magento cache:clean.
          You can modify the codes according to your requirement.



          Note: Above codes are not Tested but it should work.






          share|improve this answer













          You can managed to work it by following code:



          Step 1: Create a module with name Vendor_Module and do the following changes.



          Step 2: create di.xml under




          app/code/Vendor/Module/etc/di.xml




          with content:



          <?xml version="1.0"?>
          <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
          <preference for="MagentoSalesModelOrderEmailSenderShipmentSender" type="VendorModuleModelOrderEmailSenderShipmentSender" />
          </config>


          Step 3: Create SenderBuilder.php under




          app/code/Vendor/Module/Model/Order/Email/Sender/ShipmentSender.php




          with content:



          <?php

          namespace VendorModuleModelOrderEmailSender;


          class ShipmentSender extends MagentoSalesModelOrderEmailSenderShipmentSender


          public function send(Shipment $shipment, $forceSyncMode = false)

          //do your logic




          And then run required commands
          bin/magento setup:upgrade
          bin/magento setup:di:compile
          bin/magento setup:static-content:deploy
          bin/magento cache:clean.
          You can modify the codes according to your requirement.



          Note: Above codes are not Tested but it should work.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jul 8 at 13:16









          KKRKKR

          13010 bronze badges




          13010 bronze badges












          • i will check and update soon

            – Rk Rathod
            Jul 8 at 13:17











          • as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

            – Rk Rathod
            Jul 9 at 7:28












          • 1+ for response

            – Rk Rathod
            Jul 9 at 8:06

















          • i will check and update soon

            – Rk Rathod
            Jul 8 at 13:17











          • as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

            – Rk Rathod
            Jul 9 at 7:28












          • 1+ for response

            – Rk Rathod
            Jul 9 at 8:06
















          i will check and update soon

          – Rk Rathod
          Jul 8 at 13:17





          i will check and update soon

          – Rk Rathod
          Jul 8 at 13:17













          as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

          – Rk Rathod
          Jul 9 at 7:28






          as per my task shipment mail send 2 person 1st is customer and 2nd is dynamic email so how can i do this ?? check my updated answer

          – Rk Rathod
          Jul 9 at 7:28














          1+ for response

          – Rk Rathod
          Jul 9 at 8:06





          1+ for response

          – Rk Rathod
          Jul 9 at 8:06

















          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%2f281208%2fadd-bcc-in-shipment-email-magento-2%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

          Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

          Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

          Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림