0

I am creating a rules to send an email when a (node with content type update) is updated
which has field_og_audience as field and it is placed on the groups page using advanced form block.

I want to send an email when node (with content type update) is updated by user then all
the members of the group(selected in the field_og_audience) should recieve an email.

2
  • Have you tried creating a custom action? api.drupal.org/api/drupal/modules!system!system.api.php/… - This can be fired by rules and accept the OG ID, which you could use in turn to load the users and send off an e-mail. I'm not aware of a point-n-click solution. Jul 10, 2014 at 17:42
  • 1
    @tyler.frankenstein I added a rule for content as shown below to send mail to all members
    – harshal
    Jul 10, 2014 at 17:48

1 Answer 1

1

EVENT

After saving new content

CONDITIONS

Entity is group content

Parameter: Entity: [node]

ACTIONS

Get group members from group audience Parameter: Group content: [node] Provides variables: Fetch a List of group members (group_members)

Loop Parameter: List: [group-members] List item: Get list of group members and their email ids (list_grp_members_emails)

Send mail Parameter: To: [list-grp-members-emails:mail], Subject: Notification: Content..., Message: Test

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.