Class: Contact::Mailer

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

Instance Method Summary collapse

Instance Method Details

#contact_us(form) ⇒ Object

We have a contact form. That form is filled out by the customer. When they click ‘send’, this email is sent. It is how our customers contact_us()



9
10
11
12
13
# File 'app/mailers/mailer.rb', line 9

def contact_us(form)
  @form = form
  mail :from    => form.from,
       :subject => "Customer Contact: #{form.subject}"
end