Posted by kurosevic on April 20, 2010 at 8:00pm
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
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
<?phpviews_embed_view('your_view', 'your_display');
?>
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
Thank you for that, it was everything i needed to know!