Answer the question
In order to leave comments, you need to log in
How to change the body of email notifications in Redmine?
Good afternoon.
There was a need to edit the body of notifications sent to users by e-mail from Redmine. Namely, how to make it so that users receive a simple notification of an event without attaching the event itself (correspondence, comment) of the task? It is necessary that the user receive notifications like:
"User Vasya commented on the task assigned to you. Details at the link ...."
By default, the system sends all correspondence. As a result, some individuals (users) respond to this letter with a reply letter.
Thank you!
----------------
No one asked this question? Give, pliz, a tip where to dig or what template file is in the system?
Answer the question
In order to leave comments, you need to log in
See: /redmine/app/models/mailer.rb
For example New Task Notifications:
# Builds a mail for notifying to_users and cc_users about a new issue
def issue_add(issue, to_users, cc_users)
redmine_headers 'Project' => issue.project.identifier,
'Issue-Id' => issue.id,
'Issue-Author' => issue.author.login
redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to
message_id issue
references issue
@author = issue.author
@issue = issue
@users = to_users + cc_users
@issue_url = url_for(:controller => 'issues', :action => 'show', :id => issue)
mail :to => to_users.map(&:mail),
:cc => cc_users.map(&:mail),
:subject => "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] (#{issue.status.name}) #{issue.subject}"
end
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question