For the mailer report we have WorkReportMailer
which acts as the controller of the Application Mailer. The mailer is called
in the ExportController file.
def send_mail_report
emails = process_email
emails.each do |email|
WorkReportMailer.send_report(email.strip, current_account.cname, params[:email_type]).deliver_later
end
redirect_to hyrax.admin_stats_path(anchor: 'email_reports')