Class: Cms::EmailMessageMailer

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

Instance Method Summary collapse

Instance Method Details

#email_message(message) ⇒ Object



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

def email_message(message)
  email = {:to=>message.recipients, :from=>message.sender, :subject => message.subject, :body =>message.body}
  email[:content_type]  = message.content_type if message.content_type
  mail email
end