SuiteCRM icon indicating copy to clipboard operation
SuiteCRM copied to clipboard

Fix #10477 - Do not exclude email sends from the message queue without filtering by campaign

Open SinergiaCRM opened this issue 6 months ago • 5 comments

Description

In this PR, the incident indicated in the issue is solved by adding a condition to the SQL code that excludes messages from the sending queue so that it filters by the campaign to which the sending belongs, so that sendings belonging to campaigns that do not have exclusion Target Lists (TL) are not excluded.

Motivation and Context

Emails sent from campaigns that do not have opt-out TL are excluded

How To Test This

1. Create a _default_ TL with two contacts and another TL of _Exclusion by ID_ type with one of the previous contacts.
2. Create two campaigns, one that only has the _default_ TL and another that has both TL.
3. Send the campaign that does not have the exclusion TL and check that both contacts appear in the message queue.
4. Send the campaign that does have the exclusion TL and check that the sending of the campaign email without the exclusion TL to the contact that belongs to the exclusion TL of the second campaign has NOT disappeared from the message queue. 

Types of changes

  • [X] Bug fix (non-breaking change which fixes an issue)
  • [ ] New feature (non-breaking change which adds functionality)
  • [X] Breaking change (fix or feature that would cause existing functionality to change)

Final checklist

  • [X] My code follows the code style of this project found here.
  • [ ] My change requires a change to the documentation.
  • [X] I have read the How to Contribute guidelines.

SinergiaCRM avatar Aug 02 '24 11:08 SinergiaCRM