Actions
Feature #2689
closedemail address of the project
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Email notifications
Target version:
-
Start date:
2009-02-06
Due date:
% Done:
0%
Estimated time:
Resolution:
Description
I want to transmit the notice of addition and the change of the ticket to the e-mail address of the whole projects such as mailing lists.
model and view patch.
Index: app/models/mailer.rb =================================================================== --- app/models/mailer.rb (revision 2363) +++ app/models/mailer.rb (working copy) @@ -29,6 +29,7 @@ redmine_headers 'Issue-Assignee' => issue.assigned_to.login if issue.assigned_to recipients issue.recipients cc(issue.watcher_recipients - @recipients) + cc << issue.project.email if issue.project.email subject "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] (#{issue.status.name}) #{issue.subject}" body :issue => issue, :issue_url => url_for(:controller => 'issues', :action => 'show', :id => issue) @@ -44,6 +45,7 @@ recipients issue.recipients # Watchers in cc cc(issue.watcher_recipients - @recipients) + cc << issue.project.email if issue.project.email s = "[#{issue.project.name} - #{issue.tracker.name} ##{issue.id}] " s << "(#{issue.status.name}) " if journal.new_value_for('status_id') s << issue.subject Index: app/views/projects/_form.rhtml =================================================================== --- app/views/projects/_form.rhtml (revision 2363) +++ app/views/projects/_form.rhtml (working copy) @@ -14,6 +14,7 @@ <br /><em><%= l(:text_length_between, 2, 20) %> <%= l(:text_project_identifier_info) %></em> <% end %></p> <p><%= f.text_field :homepage, :size => 60 %></p> +<p><%= f.text_field :email, :size => 60 %></p> <p><%= f.check_box :is_public %></p> <%= wikitoolbar_for 'project_description' %>
migration file.
class AddEmailToProject < ActiveRecord::Migration def self.up add_column :projects, :email, :string end def self.down remove_column :projects, :email end end
Related issues
Updated by Tomonori Kimura almost 16 years ago
Tomonori Kimura wrote:
I want to transmit the notice of addition and the change of the ticket to the e-mail address of the whole projects such as mailing lists.
"ticket" is wrong. I wanted to convey "issue".
Updated by Eric Davis almost 16 years ago
Could you add some tests to confirm the behavior?
Updated by Rachid B over 12 years ago
- Status changed from New to Resolved
I think this plugin provides that functionality:
https://github.com/ajwalters/redmine_project_specific_email_sender
Updated by Go MAEDA almost 5 years ago
- Status changed from Resolved to Closed
Redmine 3.2.0 or later supports project-specific email addresses (redmine+project@example.com). See #20732 for details.
Updated by Go MAEDA almost 5 years ago
- Related to Patch #20732: MailHandler: Select project by subaddress (redmine+project@example.com) added
Actions