Class: Contact::Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Contact::Mailer
- Defined in:
- app/mailers/mailer.rb
Instance Method Summary collapse
-
#contact_us(form) ⇒ Object
We have a contact form.
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 |