Question

I want to know, which file responsible for sending an email to customer when a shipment is created by admin (IF CHECKED Email Copy of Shipment)

Was it helpful?

Solution

You can check this file..

vendor/magento/module-shipping/Controller/Adminhtml/Order/Shipment/Save.php

if (!empty($data['send_email'])) {
    $this->shipmentSender->send($shipment);
}

If Email Copy of Shipment checkbox is selected in Backend and you will try to Submit shipment then this code will send email to customer.

vendor/magento/module-sales/Model/Order/Email/Sender/ShipmentSender.php

And in above model file there is send() function available, that will send email to customer.

Hope it will help you!

Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange
scroll top