ACSD-58685: Disabled sales emails are sent upon re-enabling

The ACSD-58685 patch fixes the issue where sales emails initiated while email communication is disabled are sent once email communication is re-enabled. This patch is available when the Quality Patches Tool (QPT) 1.1.55 is installed. The patch ID is ACSD-58685. Please note that the issue is scheduled to be fixed in Adobe Commerce 2.4.8.

Affected Products and Versions

The patch is created for Adobe Commerce version:

  • Adobe Commerce (all deployment methods) 2.4.6-p4

Compatible with Adobe Commerce versions:

  • Adobe Commerce (all deployment methods) 2.4.4 - 2.4.7-p3
NOTE
The patch might become applicable to other versions with new Quality Patches Tool releases. To check if the patch is compatible with your Adobe Commerce version, update the magento/quality-patches package to the latest version and check the compatibility on the Quality Patches Tool: Search for patches page. Use the patch ID as a search keyword to locate the patch.

Issue

Sales emails initiated while email communication is disabled are sent once email communication is re-enabled.

Steps to reproduce:

  1. Go to Sales > Configuration > Advanced > System > Mail Sending Settings and set Disable Email Communications to No.
  2. Navigate to Sales > Configuration > Sales > Sales Emails > General Settings and set Asynchronous Sending to Yes.
  3. Clear the configuration cache.
  4. Place an order.
  5. Enable email communication.
  6. Place another order.
  7. Run the cron.

Expected results:

Only the email for the second order is sent.

Actual results:

Emails for both the first and second orders are sent.

Apply the patch

To apply individual patches, use the following links depending on your deployment method:

To learn more about Quality Patches Tool, refer to:

Quality Patches Tool: A self-service tool for quality patches in the Tools guide.

recommendation-more-help
c2d96e17-5179-455c-ad3a-e1697bb4e8c3