class SignatoryMailer < ApplicationMailer def sign @signatory = params[:signatory] mail to: @signatory.email, subject: 'Merci de confirmer votre signature' end def signed @signatory = params[:signatory] mail to: @signatory.email, subject: 'Confirmation de votre signature' end end