12 lines
341 B
Ruby
12 lines
341 B
Ruby
class NoteMailer < ActionMailer::Base
|
|
default from: 'moderateurs@agendadulibre.org'
|
|
|
|
def create(note)
|
|
@note = note
|
|
|
|
mail 'In-Reply-To' => "<event-#{note.event.id}@#{ActionMailer::Base.default_url_options[:host]}>",
|
|
to: note.event.contact,
|
|
subject: t('note_mailer.create.subject', subject: note.event.title)
|
|
end
|
|
end
|