X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/97e3a42d5041515e4c135220b1836805e76a2d94..ba56503f90d099a215fb7375f5cb1cc1ac667e2c:/apps/workbench/app/mailers/issue_reporter.rb diff --git a/apps/workbench/app/mailers/issue_reporter.rb b/apps/workbench/app/mailers/issue_reporter.rb index 1b1fa65b35..8066b0b5bb 100644 --- a/apps/workbench/app/mailers/issue_reporter.rb +++ b/apps/workbench/app/mailers/issue_reporter.rb @@ -1,10 +1,16 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + class IssueReporter < ActionMailer::Base - default from: Rails.configuration.report_notifier_email_from - default to: Rails.configuration.report_notifier_email_to + default from: Rails.configuration.Mail.IssueReporterEmailFrom + default to: Rails.configuration.Mail.IssueReporterEmailTo - def send_report(user, data) + def send_report(user, params) @user = user - @data = data - mail(subject: 'Issue reported') + @params = params + subject = 'Issue reported' + subject += " by #{@user.email}" if @user + mail(subject: subject) end end