Answers.Body: <p>We ended up commissioning AGH Strategies to write an extension. Check out github.com/aghstrategies/com.aghstrategies.activityemail and the readme: github.com/aghstrategies/com.aghstrategies.activityemail/blob/… - that was the missing piece for us. </p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-08T02:56:28.217Z
Answers.Text: cool. do you understand why in their example the From shows as 1,1
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-08T13:17:11.477Z
Answers.Text: @petednz-fuzion I think the readme is not quote up to date. It now works with typing in a contact name or email address.
Answers.UserDisplayName: Katy J
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-12T18:48:53.467Z
Answers.Text: I've raised an issue with this extension as it seems to limit the number of emails sent to 25 - the 2 groups we're sending to have 45 contacts with primary email addresses- see https://github.com/aghstrategies/com.aghstrategies.activityemail/issues
Answers.UserDisplayName: Andy Clark
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-12-07T14:36:36.640Z
Answers.LastActivityDate: 2019-12-07T14:36:36.640Z
Answers.UserDisplayName: Katy J
Body: <p>I am trying to send an Activity-triggered scheduled reminder to a group. These contacts will not be otherwise associated with the Activity. </p>
  
  <p>Recipients > Send to group doesn't seems to be working and there's something in the documentation that suggests only members of the group that <em>also</em> meet some other criteria (Activity associated contacts?) will get the email, but this isn't clear. </p>
  
  <p>So maybe it would work to use the 'Limit or Add Recipients' > 'Also include' option. But this doesn't exist in scheduled reminders <em>only</em> for Entity type = Activity.</p>
  
  <p>Thinking about asking someone to write an extension to override this on our site, but want to check there's not some deep reason this is omitted for Activities. </p>
  
  <p>Or maybe it's a bug, and Recipients > Send to group is supposed to work...?</p>
  
  <p>Thanks for the help. </p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-28T20:19:31.613Z
Comments.Text: This old topic https://forum.civicrm.org/index.php%3Ftopic=36142.0.html pointed at this https://issues.civicrm.org/jira/browse/CRM-15536 and to some PRs https://github.com/civicrm/civicrm-core/pull/5477 https://github.com/civicrm/civicrm-core/pull/5421
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-29T03:59:42.807Z
Comments.Text: Thanks Peter, that's interesting. None of that mentions why that function isn't there for Activities, as that's not the focus of the discussion. The mystery continues. Looks like I'll have to call up DGG :) Or maybe Joanne...
Comments.UserDisplayName: Katy J
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-29T19:48:30.450Z
Comments.Text: just for completeness, my other comment in chat was about whether the fact that contacts can be 'connected' to an Activity as any or all of source, with, target might be the factor adding complexity to this situation
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-30T14:19:44.240Z
Comments.Text: Recipient(s) selector for activity that says "Assignee, Target, Source" uses the same column in database that's used for limit-to / include for other entities. And that's probably the reason why it does not appear separately like for other entities. To provide both the options like "Source" and limit-to/include, it would probably need a new column and code to handle both.
Comments.UserDisplayName: Deepak Srivastava
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-30T16:59:00.893Z
Comments.Text: @DeepakSrivastava in our particular case we actually **only** want to send to a group, not any of the activity contacts. Does that change anything?
Comments.UserDisplayName: Katy J
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-30T17:11:46.583Z
Comments.Text: @DeepakSrivastava I've updated my question to explain what I actually want to achieve.
Comments.UserDisplayName: Katy J
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-30T19:36:54.577Z
Comments.Text: have you looked at civirules - or if drupal, then drupal rules
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-31T02:31:40.393Z
Comments.Text: @petednz-fuzion yes. I'm talking to CiviCoop about adding some functionality to CiviRules, and I have it just all got too complicated with Rules - needing to add a rule for each smart group and a View for each one - for the Rule to cycle through the email addresses. I'm hopeful that someone else I'm talking to will be able to write something custom. I'll report back!
Comments.UserDisplayName: Katy J
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-31T07:25:03.497Z
Comments.Text: cool. good luck. otherwise give us a ping next week if you want us to take a further look
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-31T11:42:50.900Z
Comments.Text: @KatyJ If you just want to send it to a group irrespective of Source/Assignee/Target, think it should work as it is. And might be a bug (and possibly easier fix than some new code) if it's not working already.
Comments.UserDisplayName: Deepak Srivastava
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-05-31T21:13:15.263Z
Comments.Text: @DeepakSrivastava Yep, there's a growing consensus that it's a bug.  Andrew at AGH points out that it probably is a bug but it's so long-standing (since 2014) that we would have trouble getting it changed at this point because people may be relying on the buggy behavior.
Comments.UserDisplayName: Katy J
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-06T17:29:27.317Z
Comments.Text: Just discovered this problem for myself when testing, as the email only went to a contact involved in the activity & not to the rest of the group.  That's a real disappointment and it was only this SE question that provided the answer. Scheduled Reminders is sparsely documented and I couldn't find anything about this restriction.  It's a bug in my book.
Comments.UserDisplayName: Andy Clark
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-06T21:21:15.930Z
Comments.Text: @AndyClark We ended up commissioning AGH Strategies to write an extension. 
  Check out https://github.com/aghstrategies/com.aghstrategies.activityemail and the readme: https://github.com/aghstrategies/com.aghstrategies.activityemail/blob/master/README.md - helped us out a bunch. Ask if you have any Questions. (yes, it's a bug)
Comments.UserDisplayName: Katy J
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-06T21:31:46.917Z
Comments.Text: Many thanks, Katy, that looks good. A pity I can't give you a +1 - maybe you should put that as an answer here?  Thx again!
Comments.UserDisplayName: Andy Clark
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-06T21:46:38.243Z
Comments.Text: ... and most important, it works!
Comments.UserDisplayName: Andy Clark
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2019-12-07T14:37:05.143Z
Comments.Text: @AndyClark Good call. I have done.
Comments.UserDisplayName: Katy J
Tags: <activities><groups><scheduled-reminders>
Title: Send scheduled reminder to group
ThreadText: # Send scheduled reminder to group
  
  (Asked by: username_0 on 2019-05-23)
  
  I am trying to send an Activity-triggered scheduled reminder to a group. These contacts will not be otherwise associated with the Activity.
  
  Recipients > Send to group doesn't seems to be working and there's something in the documentation that suggests only members of the group that *also* meet some other criteria (Activity associated contacts?) will get the email, but this isn't clear.
  
  So maybe it would work to use the 'Limit or Add Recipients' > 'Also include' option. But this doesn't exist in scheduled reminders *only* for Entity type = Activity.
  
  Thinking about asking someone to write an extension to override this on our site, but want to check there's not some deep reason this is omitted for Activities.
  
  Or maybe it's a bug, and Recipients > Send to group is supposed to work...?
  
  Thanks for the help.
  
  **Tags:** activities, groups, scheduled-reminders
  
  > **Comments:**
  > **username_1**: This old topic https://forum.civicrm.org/index.php%3Ftopic=36142.0.html pointed at this https://issues.civicrm.org/jira/browse/CRM-15536 and to some PRs https://github.com/civicrm/civicrm-core/pull/5477 https://github.com/civicrm/civicrm-core/pull/5421  
  > **username_0**: Thanks Peter, that's interesting. None of that mentions why that function isn't there for Activities, as that's not the focus of the discussion. The mystery continues. Looks like I'll have to call up DGG :) Or maybe Joanne...  
  > **username_1**: just for completeness, my other comment in chat was about whether the fact that contacts can be 'connected' to an Activity as any or all of source, with, target might be the factor adding complexity to this situation  
  > **username_2**: Recipient(s) selector for activity that says "Assignee, Target, Source" uses the same column in database that's used for limit-to / include for other entities. And that's probably the reason why it does not appear separately like for other entities. To provide both the options like "Source" and limit-to/include, it would probably need a new column and code to handle both.  
  > **username_0**: @username_2 in our particular case we actually **only** want to send to a group, not any of the activity contacts. Does that change anything?  
  > **username_0**: @username_2 I've updated my question to explain what I actually want to achieve.  
  > **username_1**: have you looked at civirules - or if drupal, then drupal rules  
  > **username_0**: @username_1 yes. I'm talking to CiviCoop about adding some functionality to CiviRules, and I have it just all got too complicated with Rules - needing to add a rule for each smart group and a View for each one - for the Rule to cycle through the email addresses. I'm hopeful that someone else I'm talking to will be able to write something custom. I'll report back!  
  > **username_1**: cool. good luck. otherwise give us a ping next week if you want us to take a further look  
  > **username_2**: @username_0 If you just want to send it to a group irrespective of Source/Assignee/Target, think it should work as it is. And might be a bug (and possibly easier fix than some new code) if it's not working already.  
  > **username_0**: @username_2 Yep, there's a growing consensus that it's a bug.  Andrew at AGH points out that it probably is a bug but it's so long-standing (since 2014) that we would have trouble getting it changed at this point because people may be relying on the buggy behavior.  
  > **username_3**: Just discovered this problem for myself when testing, as the email only went to a contact involved in the activity & not to the rest of the group.  That's a real disappointment and it was only this SE question that provided the answer. Scheduled Reminders is sparsely documented and I couldn't find anything about this restriction.  It's a bug in my book.  
  > **username_0**: @username_3 We ended up commissioning AGH Strategies to write an extension.  Check out https://github.com/aghstrategies/com.aghstrategies.activityemail and the readme: https://github.com/aghstrategies/com.aghstrategies.activityemail/blob/master/README.md - helped us out a bunch. Ask if you have any Questions. (yes, it's a bug)  
  > **username_3**: Many thanks, username_0, that looks good. A pity I can't give you a +1 - maybe you should put that as an answer here?  Thx again!  
  > **username_3**: ... and most important, it works!  
  > **username_0**: @username_3 Good call. I have done.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2019-12-07. Score: 2
  
  We ended up commissioning AGH Strategies to write an extension. Check out github.com/aghstrategies/com.aghstrategies.activityemail and the readme: github.com/aghstrategies/com.aghstrategies.activityemail/blob/… - that was the missing piece for us.
  
  > **Comments:**
  > **username_1**: cool. do you understand why in their example the From shows as 1,1  
  > **username_0**: @username_1 I think the readme is not quote up to date. It now works with typing in a contact name or email address.  
  > **username_3**: I've raised an issue with this extension as it seems to limit the number of emails sent to 25 - the 2 groups we're sending to have 45 contacts with primary email addresses- see https://github.com/aghstrategies/com.aghstrategies.activityemail/issues  
  
  ---
  
  