OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/app/mailers/meeting_mailer.rb

17 lines
625 B

class MeetingMailer < UserMailer
def content_for_review(content, content_type)
@meeting = content.meeting
@meeting_url = meeting_url @meeting
@project_url = project_url @meeting.project
@content_type = content_type
open_project_headers 'Project' => @meeting.project.identifier,
'Meeting-Id' => @meeting.id
recipients = @meeting.watcher_recipients.reject{|r| r == @meeting.author.mail}
subject = "[#{@meeting.project.name}] #{I18n.t(:"label_#{content_type}")}: #{@meeting.title}"
mail :to => @meeting.author.mail, :cc => recipients, :subject => subject
end
end