Answers.Body: <p>Thanks to Demerit and Petednz for answering this in the comments.</p>
  <p>The answer is that the email is sent to contacts that were in the group(s) when the email was scheduled, not when it actually sends.</p>
  <p>This extension, though with flaws addresses the issue. It recalculates the contact groups before sending the email. However it does not work if you do A/B testing or if you use ACL's to restrict who can send emails to what groups.
  <a href="https://github.com/3sd/civicrm-recalculate-recipients" rel="nofollow noreferrer">https://github.com/3sd/civicrm-recalculate-recipients</a></p>
  <p>These gitlab issues discuss this in more detail.
  <a href="https://lab.civicrm.org/dev/core/-/issues/2351" rel="nofollow noreferrer">https://lab.civicrm.org/dev/core/-/issues/2351</a> and <a href="https://lab.civicrm.org/dev/mail/-/issues/45" rel="nofollow noreferrer">https://lab.civicrm.org/dev/mail/-/issues/45</a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2022-05-08T02:38:06.697Z
Answers.LastActivityDate: 2022-05-08T02:38:06.697Z
Answers.UserDisplayName: themak
Body: <p>This might be a stupid question, but I know some poorly designed systems out there, so I just want to make sure.</p>
  <p>Scenario</p>
  <ul>
  <li>Monday - Create an Email - Choose a Group/Smart Group - Schedule it to go out Friday</li>
  <li>Though-out the week, you remove members of the group or if a smart group, it updates and removes members of the group. Let's say 10 people are removed.</li>
  <li>Friday email goes out to the group</li>
  </ul>
  <p>Do those 10 people that were removed get the email or does it deliver the email to who is in the group when the email is sent?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-07T04:00:22.180Z
Comments.Text: i am sure this has been asked/answered but having no luck finding the thread. i think there has been debate about the situation too. iirc the original logic was it went to the people in the group at the time you submit the mailing, not at the time of sending. i want to say that there may now be (or will soon be) a setting where you get to decide what the default should be (but i might be imagining that)
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2022-05-07T11:58:55.890Z
Comments.Text: You're probably thinking of https://lab.civicrm.org/dev/core/-/issues/2351 and https://lab.civicrm.org/dev/mail/-/issues/45
Comments.UserDisplayName: Demerit
Tags: <civimail><smartgroups>
Title: Are contacts cached when scheduling a mailing?
ThreadText: # Are contacts cached when scheduling a mailing?
  
  (Asked by: username_0 on 2022-05-07)
  
  This might be a stupid question, but I know some poorly designed systems out there, so I just want to make sure.
  
  Scenario
  
  * Monday - Create an Email - Choose a Group/Smart Group - Schedule it to go out Friday
  * Though-out the week, you remove members of the group or if a smart group, it updates and removes members of the group. Let's say 10 people are removed.
  * Friday email goes out to the group
  
  Do those 10 people that were removed get the email or does it deliver the email to who is in the group when the email is sent?
  
  **Tags:** civimail, smartgroups
  
  > **Comments:**
  > **username_1**: i am sure this has been asked/answered but having no luck finding the thread. i think there has been debate about the situation too. iirc the original logic was it went to the people in the group at the time you submit the mailing, not at the time of sending. i want to say that there may now be (or will soon be) a setting where you get to decide what the default should be (but i might be imagining that)  
  > **username_2**: You're probably thinking of https://lab.civicrm.org/dev/core/-/issues/2351 and https://lab.civicrm.org/dev/mail/-/issues/45  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2022-05-08. Score: 1
  
  Thanks to username_2 and username_1 for answering this in the comments.
  
  The answer is that the email is sent to contacts that were in the group(s) when the email was scheduled, not when it actually sends.
  
  This extension, though with flaws addresses the issue. It recalculates the contact groups before sending the email. However it does not work if you do A/B testing or if you use ACL's to restrict who can send emails to what groups.
  <https://github.com/3sd/civicrm-recalculate-recipients>
  
  These gitlab issues discuss this in more detail.
  <https://lab.civicrm.org/dev/core/-/issues/2351> and <https://lab.civicrm.org/dev/mail/-/issues/45>
  
  
  ---
  
  