Hi,
I am quiet sure that this works - but I don't find the correct way to manage it with rules ...

I have a CCK content type with a userreference field.
If new content is created and the field is filled (or if the field is changed on edit) I want to inform the referenced user on the new content.

Also, if there is content created with a nodereference to the content above, I also want to inform the referenced user.

Is this possible with rules? And what is the correct way to do it?

Kind regards

Comments

epop’s picture

Component: User Interface » User interface

Create a triggered Rule
Then in conditions choose "Content has type" - choose the type with your user reference field in it.

In the actions you then need to "Load a referenced user" choosing to load the user reference you want the mail to go to. read about aruments configuration
Then another action "Send a mail to user" and choose the argument you created in the "Load a referenced user" action.

vistree’s picture

Thank you for the explanation - this works well!

klausi’s picture

Status: Active » Fixed

marking as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

my-family’s picture

Is it possible to send message to more users? (CCK node reference with more or unlimited number of values)
Thank you in advance for help (and thank you for this nice module).

mayerwin’s picture

+1

davidbessler’s picture

Thanks for explaining that. It is a common use of Rules and should be explained in the documentation!

my-family’s picture

Btw, I have already found out how to send message to more users (but it is a workaround):

1. I have CCK field with userreference and unlimited number of users
2. I have computed field (Computed Field module) which generates a comma separated list of e-mails on the basis of the userreference field.
3. In rules I use the action "send e-mail to the arbitrary mail address" which uses the Computed field value as token.