Weekly email containing All nodes of content type

Events happening in the community are now at Drupal community events on www.drupal.org.
kurosevic's picture

Hello all,

would someone kindly suggest to me how to do the following:

send a weekly email that contains all content of a type created during the previous week.

(in reality, it seems like it would be useful to just email a view, but i dont know if thats possible.)

Comments

Rules + a txt view

itangalo's picture

You could try the following

1) Set up a View that displays the information you want.
2) Use Views Bonus Pack to make a txt style view (or possibly CSV). Use the Feed display to find these options under style.
3) Set up a rule set that sends and e-mail to the address you want. In the message, use

<?php
views_embed_view
('your_view', 'your_display');
?>
to get the content of your view. (You should have enabled the PHP filter module to make this work.)
4) Activate Rules Scheduler (included in the Rules project).
5) In the rule set, add an action to schedule execution ('evaluation') of the rule set again in one week. You could use syntax like '+ 1 Sunday' to set the time.

With this should be all set, almost. The last thing is to start the Rule -- once it is started it will reschedule itself over and over again.
The easiest way to start the cycle is probably to make a triggered rule calling the rule set. (You could trigger it on a Flag, or perhaps just on comment posting. Just be sure to remove/disable the trigger when you're done.)

Good luck!
//Johan Falk, NodeOne, Sweden

Thank you for that, it was

kurosevic's picture

Thank you for that, it was everything i needed to know!

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: