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

9 lines
229 B
Ruby

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