I use the [Group][1] module. I create a flag to mark groups. I wish that when a group is marked, an email is sent to all members of that group. How to do this ?


I created the following rule, but I find nothing in "conditions" in relation to the groups :

    { "rules_email_groupe" : {
        "LABEL" : "Email groupe",
        "PLUGIN" : "reaction rule",
        "OWNER" : "rules",
        "REQUIRES" : [ "rules", "flag" ],
        "ON" : { "flag_flagged_achats_groupes" : [] },
        "DO" : [
          { "mail" : {
              "to" : "[email protected]",
              "subject" : "Invitation \u00e0 la vente group\u00e9e de [flagged-group:title]",
              "message" : "Bonjour,\r\n\r\n\r\nle groupe [flagged-group:title], vous invite \u00e0 sa vente group\u00e9e.\r\nElle commencera [flagging:field-flag-date:value] et se terminera [flagging:field-flag-date:value2].\r\n\r\n\r\nCordialement,\r\nL\u0027\u00e9quipe [site:name]\r\n[site:url]\r\n\r\nPour rester inform\u00e9 des nouveaut\u00e9s et b\u00e9n\u00e9ficier de nos offres promotionnelles, suivez-nous sur :\r\nhttps:\/\/www.facebook.com\/S1biosecom\r\nhttps:\/\/twitter.com\/S1biosecom\r\nhttps:\/\/plus.google.com\/+S1biosecom\r\nhttps:\/\/www.pinterest.com\/S1biosecom\r\n\r\nPS : ceci est un mail automatique, merci de ne pas y r\u00e9pondre.",
              "from" : "[site:mail]",
              "language" : [ "flagging-user:language" ]
            }
          }
        ]
      }
    }

Any suggestions?

[![enter image description here][2]][2]

[![enter image description here][3]][3]

[![enter image description here][4]][4]

[![enter image description here][5]][5]


  [1]: https://www.drupal.org/project/group
  [2]: https://i.sstatic.net/dmu53.png
  [3]: https://i.sstatic.net/nxGUV.png
  [4]: https://i.sstatic.net/tPEij.png
  [5]: https://i.sstatic.net/BKGJP.png