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;
Is there any Event or Observer to Add
BCCin 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
add a comment |
Is there any Event or Observer to Add
BCCin 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
add a comment |
Is there any Event or Observer to Add
BCCin 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
Is there any Event or Observer to Add
BCCin 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
magento2 event-observer email shipment
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
add a comment |
add a comment |
3 Answers
3
active
oldest
votes
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;
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
|
show 3 more comments
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
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
add a comment |
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:upgradebin/magento setup:di:compilebin/magento setup:static-content:deploybin/magento cache:clean.
You can modify the codes according to your requirement.
Note: Above codes are not Tested but it should work.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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;
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
|
show 3 more comments
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;
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
|
show 3 more comments
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;
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;
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
|
show 3 more comments
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
|
show 3 more comments
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
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
add a comment |
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
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
add a comment |
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
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
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
add a comment |
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
add a comment |
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:upgradebin/magento setup:di:compilebin/magento setup:static-content:deploybin/magento cache:clean.
You can modify the codes according to your requirement.
Note: Above codes are not Tested but it should work.
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
add a comment |
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:upgradebin/magento setup:di:compilebin/magento setup:static-content:deploybin/magento cache:clean.
You can modify the codes according to your requirement.
Note: Above codes are not Tested but it should work.
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
add a comment |
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:upgradebin/magento setup:di:compilebin/magento setup:static-content:deploybin/magento cache:clean.
You can modify the codes according to your requirement.
Note: Above codes are not Tested but it should work.
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:upgradebin/magento setup:di:compilebin/magento setup:static-content:deploybin/magento cache:clean.
You can modify the codes according to your requirement.
Note: Above codes are not Tested but it should work.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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