Simplenews Scheduler
Simplenews scheduler sends a newsletter as a re-occurring item based on a schedule.
It requires the simplenews newsletter module.
Simplenews scheduler does so by creating a new "edition" (rendered copy as HTML Format) of a node at the time that it required to be sent again, the original newsletter is never sent but all editions are according to a pre-defined schedule, this is triggered via hook_cron
Nodes created by Simplenews schedule have an extra tab (for those with permissions) for viewing all editions as well as the original newsletter they are generated from.
The schedule is defined when you create or edit a `simplenews` node.
Current options for sending are by day, week, and month.
Works great with insert view to place the content of a view into a newsletter.
(eg: [view:recent_articles=20] )
This module also comes with a views filter so you can filter nodes that are newer (or older) than the most recent edition of any newsletter.
Written by dgtlmoon for marmaladesoul. Initial development sponsored by IIS Aid.
* @todo: specify a view(s) to check, so if this view doesnt return any nodes, dont send the newsletter
* @todo: specify maximum number of times a newsletter should be sent
* @todo: specify an end date for the newsletter
bugs:
probably a few;
- the views filter works but needs more testing
- a month is defined as 30 days, there should be a better way of handling this
- some UI cleanups for the scheduler area
Note:
* If you're inserting views that contain images, please upgrade to the 5.2.x branch of ImageCache
* When using with mimemail HTML format module, Add a path_to_theme/mail.css to style your newsletters.
Drupal 6
There is a new development snapshot available for Drupal 6, but it needs more testing so don't use on production sites. Anyway, feel free to try it out and report back, please! Note: Use the 6.x-1.x-dev release as listed below, not the 2.x-dev version from the release page or CVS.
ccprog's patch is committed in the dev release so you need to apply patch from #256795: Allow simplenews cron to send nodes that anonymous users cannot access to Simplenews to make this work. Otherwise you will got an error about the undefined simplenews_switch_user() function.
If you're using Supercron, be sure that Scheduler runs before Simplenews, see #594252: A different cron question.
