Class: SpreeCmCommissioner::EventTransactionalMailer
- Inherits:
-
Spree::BaseMailer
- Object
- Spree::BaseMailer
- SpreeCmCommissioner::EventTransactionalMailer
- Defined in:
- app/mailers/spree_cm_commissioner/event_transactional_mailer.rb
Instance Method Summary collapse
- #send_to_organizer(event_id, organizer_id) ⇒ Object
- #send_to_participant(event_id, participant_id) ⇒ Object
Instance Method Details
#send_to_organizer(event_id, organizer_id) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/mailers/spree_cm_commissioner/event_transactional_mailer.rb', line 5 def send_to_organizer(event_id, organizer_id) @organizer = Spree::User.find(organizer_id) @event = Spree::Taxon.find(event_id) subject = t('mail.event_engagement_mailer.organizer.subject', event_name: @event.name) mail(from: from_address, to: @organizer.email, subject: subject) end |
#send_to_participant(event_id, participant_id) ⇒ Object
14 15 16 17 18 19 20 21 |
# File 'app/mailers/spree_cm_commissioner/event_transactional_mailer.rb', line 14 def send_to_participant(event_id, participant_id) @participant = Spree::User.find(participant_id) @event = Spree::Taxon.find(event_id) subject = I18n.t('mail.event_engagement_mailer.participant.subject', event_name: @event.name) mail(from: from_address, to: @participant.email, subject: subject) end |