2411: Updated check-copyright-notices script to correctly add the comment
[arvados.git] / apps / workbench / app / mailers / issue_reporter.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class IssueReporter < ActionMailer::Base
6   default from: Rails.configuration.issue_reporter_email_from
7   default to: Rails.configuration.issue_reporter_email_to
8
9   def send_report(user, params)
10     @user = user
11     @params = params
12     subject = 'Issue reported'
13     subject += " by #{@user.email}" if @user
14     mail(subject: subject)
15   end
16 end