Class: Contact::MessageMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/contact/message_mailer.rb

Instance Method Summary collapse

Instance Method Details

#new_message(message) ⇒ Object



3
4
5
6
# File 'app/mailers/contact/message_mailer.rb', line 3

def new_message(message)
  @message = message
  mail to: Contact.to_email, from: @message.email, subject: Contact.subject
end