28 lines
958 B
Ruby
28 lines
958 B
Ruby
# coding: utf-8
|
|
class EventMailer < ActionMailer::Base
|
|
def confirmation_request(event)
|
|
@event = event
|
|
I18n.locale = @event.proposer.language
|
|
|
|
mail to: @event.proposer.email,
|
|
from: 'program@openfest.org',
|
|
subject: I18n.t('event_mailer.acceptance_notification.subject',
|
|
conference: @event.conference.title,
|
|
submission_type: @event.event_type.name.mb_chars.downcase.to_s,
|
|
title: @event.title)
|
|
end
|
|
|
|
def rejection_notification(event)
|
|
@event = event
|
|
I18n.locale = @event.proposer.language
|
|
|
|
mail to: @event.proposer.email,
|
|
from: 'program@openfest.org',
|
|
subject: I18n.t('event_mailer.rejection_notification.subject',
|
|
conference: @event.conference.title,
|
|
submission_type: @event.event_type.name.mb_chars.downcase.to_s,
|
|
title: @event.title)
|
|
end
|
|
|
|
end
|