RedmineReminderEmails » History » Version 15
Go MAEDA, 2017-11-25 07:42
The full path to rake command is not necessary when running it using bundler.
| 1 | 1 | Jean-Philippe Lang | h1. Sending reminder emails |
|---|---|---|---|
| 2 | |||
| 3 | 10 | Matt Wiseley | Redmine offers a rake task that sends reminder emails about assigned and active issues that are past due or due in the next specified number of days. |
| 4 | 1 | Jean-Philippe Lang | |
| 5 | Available options: |
||
| 6 | 4 | Mischa The Evil | |
| 7 | * days: number of days to remind about (defaults to 7) |
||
| 8 | * tracker: id of tracker (defaults to all trackers) |
||
| 9 | * project: id or identifier of project (defaults to all projects) |
||
| 10 | * users: comma separated list of user ids who should be reminded |
||
| 11 | 12 | Andriy Lesyuk | * version: name of target version for filtering issues (defaults to none) |
| 12 | 4 | Mischa The Evil | |
| 13 | 10 | Matt Wiseley | The following example will send an email to each user who has assigned issues that are past due or due in the next 7 days: |
| 14 | 13 | Hugues C. | <pre> |
| 15 | bundle exec rake redmine:send_reminders days=7 RAILS_ENV="production" |
||
| 16 | </pre> |
||
| 17 | 1 | Jean-Philippe Lang | |
| 18 | The following example will send an email to users *1*, *23*, and *56* who have assigned issues that are past due or due in the next *7 days*: |
||
| 19 | 13 | Hugues C. | <pre> |
| 20 | bundle exec rake redmine:send_reminders days=7 users="1,23,56" RAILS_ENV="production" |
||
| 21 | </pre> |
||
| 22 | 1 | Jean-Philippe Lang | |
| 23 | 15 | Go MAEDA | When adding this to your crontab, add the rake command to a small script; eg: |
| 24 | 11 | Jürgen Depicker | <pre> |
| 25 | #!/bin/bash |
||
| 26 | cd /usr/local/share/redmine |
||
| 27 | 14 | Toshi MARUYAMA | bundle exec rake redmine:send_reminders days=7 RAILS_ENV="production" |
| 28 | 11 | Jürgen Depicker | </pre> |