Notified by e-mail of all users of a role

Created on 24 June 2012, about 12 years ago
Updated 23 May 2024, about 1 month ago

Hello,

first to get noticed. Since I can not English, I have the German text with google's help to translate into English. I hope it was well translated. Below is still the original German text here.

To my problem.
I created a small club site (badminton) and would like to use the function to all users of a role by mail about the receipt of a private message if the recipient of the message is a private role was.

Unfortunately, the notification will also work with the creation of a task (Rules) are not.
The Benachrichtignug a member if the recipient is a user is working.

Can you help me please?
Maybe the rule is not correct?
I show the time code of the rule:

{ "rules_eine_nachricht_wurde_verschickt" : {
    "LABEL" : "eine Nachricht wurde verschickt",
    "PLUGIN" : "reaction rule",
    "REQUIRES" : [ "rules", "privatemsg_rules" ],
    "ON" : [ "privatemsg_insert" ],
    "IF" : [
      { "data_is_empty" : { "data" : [ "recipient:roles" ] } },
      { "AND" : [] },
      { "user_has_role" : { "account" : [ "recipient" ], "roles" : { "value" : { "5" : "5" } } } }
    ],
    "DO" : [
      { "mail_to_users_of_role" : {
          "roles" : { "value" : { "5" : "5" } },
          "subject" : "betreff [privatemsg-message:subject]",
          "message" : [ "privatemsg-message:body" ],
          "from" : "[privatemsg-message:author]"
        }
      }
    ]
  }
}

Enabled modules:
HTML Mail 7.x-2.65
Mail System 7.x-2.34
Private messages 7.x-1.3
Privatemsg Email Notification 7.x-1.3
Privatemsg filter 7.x-1.3
Privatemsg roles 7.x-1.3

Thank you for your help
twuli

Titel:
Benachrichtigung per E-Mail aller User einer Rolle

Hallo,

zunächst eine Info. Da ich nicht englisch kann, habe ich den deutschen Text mit googles Hilfe in englisch übersetzen lassen. Ich hoffe es wurde gut übersetzt. Unten ist dann noch der original deutsche Text dabei.

Zu meinem Problem.
ich habe eine kleine Vereinsseite (Badminton) erstellt und würde gerne die Funktion nutzen, die alle Benutzer einer Rolle per Mail über den Eingang einer Privaten Nachricht informiert, wenn der Adressat der Privaten Nachricht ein Rolle war.

Leider funktioniert die Benachrichtigung auch mit der Erstellung einer Aufgabe (Rules) nicht.
Die Benachrichtignug eines Mitgliedes, wenn der Adressat ein User ist, funktioniert.

Könnt ihr mir bitte helfen?
Eventuell ist auch die Rule nicht korrekt?
Ich zeige hier mal den Code der rule:
(siehe oben)

Vielen Dank für eure Hilfe
twuli

🐛 Bug report
Status

Closed: duplicate

Version

1.3

Component

Code (pm_email_notify)

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

No activities found.

Production build 0.69.0 2024