Context: drupal 7, views, Rules, Views_rules
Goal: to send an email to all users that have the same taxonomy-term as the newly posted node
Possible solutions known to me:
(1) A Rule calls the view with mailadresses and terms of each user. I would need to evaluate a condition within the view loop, which is possible, using a component of type rule or ruleset that will be executed for each item in the loop. This will be inefficient (give a lot of “skip this”).
(2) Or I could make a view for each term, as proposed in the comments of How to send out email based on matching taxonomy terms in user profiles? However, I would prefer to give my users more flexibility then just a few options.
Question: How could I pass the taxonomy-term to be used in the filter-criteria in the view? The view would then only return the records where actually something has to be done (i.e. send a mail to). Is there a way to send an argument when calling the view loop?