magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

magento/magento2#39861: Shipment email not sent when submitted from Admin Order view despite being enabled in store configuration

Open KrasnoshchokBohdan opened this issue 5 months ago • 4 comments

Description (*)

\Magento\Shipping\Controller\Adminhtml\Order\Shipment\Save::execute

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

without the right 'store id' checks only default config value

Related Pull Requests

Fixed Issues (if relevant)

  1. Fixes https://github.com/magento/magento2/issues/39861

Manual testing scenarios (*)

  1. Set up a multi-website configuration where the default has shipment emails disabled
  2. Create an order in a secondary website that has shipment emails enabled
  3. Go to Admin > Sales > Orders
  4. Open the order from the secondary store
  5. Click on "Ship" button
  6. Fill in shipment details and check "Email Copy of Shipment"
  7. Submit the shipment

Questions or comments

Contribution checklist (*)

  • [ ] Pull request has a meaningful description of its purpose
  • [ ] All commits are accompanied by meaningful commit messages
  • [ ] All new or changed code is covered with unit/integration tests (if applicable)
  • [ ] README.md files for modified modules are updated and included in the pull request if any README.md predefined sections require an update
  • [ ] All automated tests passed successfully (all builds are green)

KrasnoshchokBohdan avatar May 08 '25 12:05 KrasnoshchokBohdan