Class: EventMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- EventMailer
- Defined in:
- app/mailers/event_mailer.rb
Instance Method Summary collapse
Instance Method Details
#invitation_email(text, recipients, event, current_user) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'app/mailers/event_mailer.rb', line 5 def invitation_email(text, recipients, event, current_user) @text_before_event_table, @text_after_event_table = text.split('[ Informationen zur Veranstaltung werden vom System hier eingefügt. ]') @text_before_event_table ||= text @event = event to_emails = recipients.collect { |user| "#{user.title} <#{user.email}>" } mail to: to_emails, from: current_user.email, subject: event.title end |