2024-04-29 00:17:15 +02:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2023-01-16 23:42:26 +01:00
|
|
|
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
|
2023-10-18 07:10:26 +02:00
|
|
|
|
|
|
|
def self.critical_email?(action_name)
|
|
|
|
false
|
|
|
|
end
|
2023-01-16 23:42:26 +01:00
|
|
|
end
|