1 class IssueReporter < ActionMailer::Base
2 default from: Rails.configuration.issue_reporter_email_from
3 default to: Rails.configuration.issue_reporter_email_to
5 def send_report(user, params)
8 subject = 'Issue reported'
9 subject += " by #{@user.email}" if @user
10 mail(subject: subject)