Can I use the Rules module to send mass emails to authors of selected nodes?

Solutions

You might be able to accomplish this using Rules and Views Bulk Operations. The following screencast might get you started: NodeOne talks Drupal: Rules + VBO, revisited!

If you want to use rules for that, you would have to create your own event: when you add a CCK field. You would then have to write some code to trigger then event when a new CCK field is added, and supply rules with the nodes of that type or whatever data you would need in your rule.

My guess is that the amount of custom coding needed for this to work, would be more than what is needed to just do this yourself in a custom module, with hook_mail. Also you might have problems configuring the rule to do what you need. I haven't tried using an array of data types in rules, so that might make things more complicated for you as well.

Take a look at the Content Access Mail module (disclosure: I made it). Here are some details about it from its project page:

It provides an action for the Rules module that allows you to send rule-based emails to all users with permission to view a specific node.

It almost does what you want, so following on from @googletorp's comment about using hook_mail, this might give you a head start towards your own module.

Tags: Drupal 7 / Rules

Similar questions

How to use Rules to send an email to an email id based on a selected in a registration form?
I have created a rule for sending an email after a new user registered. I would like to add a Rules Condition to send the email to the target based on the selection in the registration form. For example: if I select the country as india I need to send to [email protected] and for other [email protected] I have tried adding a condition in To mail rece...
How to mass update recurring date rules?
I would like users to be able to mass update recurring date rules possibly using VBO and Rule sets. For example: user would like to add "exclude date = 01/01/2012" recurring date rule for all selected nodes' dates where date is a new field added to a content type. How to do this ? ---=EDIT=--- I have already build a basic Rule with the following co...
Which Rules event can I use to send a weekly mail to all users using Rules?
I'm using Drupal 7 and I need to send a weekly mail to all users. I want to use the Rules module to do this. But I couldn't find a Rules Event which allows for this. How can I implement that?
How do I Send HTML Emails via Rules?
The Rules module provides a value field for the "send mail" action. Since I also have the PHP filter module, I have the ability to add PHP code there. I want to add HTML formatting to my email. Is there a more "correct/Drupal way" of sending HTML based emails via rules other than pasting my code there? The pet module looks like a decent candidate, ...
Send Registration Emails To Non-Administrator role / Rules Data Selector By Role
I'm about to lose it here so hopefully someone here can help me. I'm working in D8 and I would like to allow users of a certain role (Managers) administrate new site users. There is a permission for that and it works fine, but I can't find a way to send an email to users of the Managers role. It seems that they will only send to the Administrator a...
How can I remove the remains of the Mass Contact module not properly uninstalled?
I tried the Drupal 8 version of the Mass Contact module (8.x-1.0-beta2, released on June 2017). As I was not fully satisfied, I decided to uninstall it. Once done, I got errors when I tried editing a user account. The website encountered an unexpected error. Please try again later. Error: Call to undefined function mass_contact_opt_out_allowed_valu...

Also ask

We use cookies to deliver the best possible experience on our website. By continuing to use this site, accepting or closing this box, you consent to our use of cookies. To learn more, visit our privacy policy.