Class: EmailMessageMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/models/email_message_mailer.rb

Instance Method Summary collapse

Instance Method Details

#email_message(message) ⇒ Object



3
4
5
6
7
8
9
# File 'app/models/email_message_mailer.rb', line 3

def email_message(message)
  @recipients = message.recipients
  @from = message.sender
  @subject = message.subject
  @body = message.body
  @content_type = message.content_type if message.content_type
end