demarches-normaliennes/app/mailers/super_admin_mailer.rb

14 lines
346 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class SuperAdminMailer < ApplicationMailer
def dolist_report(to, csv_path)
attachments["dolist_report.csv"] = File.read(csv_path)
mail(to: to, subject: "Dolist report", body: "Ci-joint le rapport d'emails récents envoyés via Dolist.")
end
def self.critical_email?(action_name)
false
end
end