From afb64ff02587e15fd7fac3547735b304a8d6684a Mon Sep 17 00:00:00 2001 From: Jason Robinson <mail@jasonrobinson.me> Date: Sun, 14 Sep 2014 14:16:37 +0300 Subject: [PATCH] Add changelog text about new rake task for admin mails. Related to #5111 --- Changelog.md | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Changelog.md b/Changelog.md index e468e303d0..9c56bddc51 100644 --- a/Changelog.md +++ b/Changelog.md @@ -18,6 +18,31 @@ There are also two configuration settings to customize the terms (when using the * `settings.terms.jurisdiction` - indicate here in which country or state any legal disputes are handled. * `settings.terms.minimum_age` - indicate here if you want to show a minimum required age for creating an account. +## Rake task to email users + +There is a new Rake task `podmin:admin_mail` available to allow podmins to easily send news and notices to users. The rake task triggers emails via the normal diaspora mailer mechanism (so they are embedded in the standard template) and takes the following parameters: + +1) Users definition + +* `all` - all users in the database (except deleted) +* `active_yearly` - users logged in within the last year +* `active_monthly` - users logged in within the last month +* `active_halfyear` - users logged in within the last 6 months + +2) Path to message file + +* Give here a path to a HTML or plain text file that contains the message. + +3) Subject + +* A subject for the email + +Example shell command (depending on your environment); + +`RAILS_ENV=production bundle exec rake podmin:admin_mail['active_monthly','./message.html','Important message from pod']` + +Read more about [specifying arguments to Rake tasks](http://stackoverflow.com/a/825832/1489738). + ## Refactor * Port help pages to Bootstrap [#5050](https://github.com/diaspora/diaspora/pull/5050) * Refactor Notification#notify [#4945](https://github.com/diaspora/diaspora/pull/4945) -- GitLab