agenda-libre-ruby/app/mailers/event_mailer.rb
2014-06-09 12:18:40 +02:00

9 lines
232 B
Ruby

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