demarches-normaliennes/app/mailers/avis_mailer.rb
2021-03-18 11:38:52 +01:00

14 lines
395 B
Ruby

# Preview all emails at http://localhost:3000/rails/mailers/avis_mailer
class AvisMailer < ApplicationMailer
helper MailerHelper
layout 'mailers/layout'
def avis_invitation(avis)
@avis = avis
email = @avis.expert&.email
subject = "Donnez votre avis sur le dossier nº #{@avis.dossier.id} (#{@avis.dossier.procedure.libelle})"
mail(to: email, subject: subject)
end
end