agenda-libre-ruby/app/mailers/note_mailer.rb

10 lines
235 B
Ruby

class NoteMailer < ActionMailer::Base
default from: 'moderateurs@agendadulibre.org'
def create(note)
@note = note
mail to: note.event.contact, subject: t('note_mailer.create.subject', subject: note.event.title)
end
end