Project

General

Profile

RedmineReminderEmails » History » Revision 14

Revision 13 (Hugues C., 2016-02-08 21:24) → Revision 14/15 (Toshi MARUYAMA, 2016-02-09 05:04)

h1. Sending reminder emails 

 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. 

 Available options: 

 * days: number of days to remind about (defaults to 7) 
 * tracker: id of tracker (defaults to all trackers) 
 * project: id or identifier of project (defaults to all projects) 
 * users: comma separated list of user ids who should be reminded 
 * version: name of target version for filtering issues (defaults to none) 

 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: 
 <pre> 
 bundle exec rake redmine:send_reminders days=7 RAILS_ENV="production" 
 </pre> 

 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*: 
 <pre> 
 bundle exec rake redmine:send_reminders days=7 users="1,23,56" RAILS_ENV="production" 
 </pre> 

 When adding this to your crontab, add the rake command to a small script and make sure to add the full path to the rake command (since the path is unknown when executed through cron); eg: 
 <pre> 
 #!/bin/bash 
 cd /usr/local/share/redmine 
 bundle exec rake /usr/local/bin/rake redmine:send_reminders days=7 RAILS_ENV="production" 
 </pre>