Class: Mailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- 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()
6 7 8 9 10 |
# File 'app/mailers/mailer.rb', line 6 def contact_us(form) @form = form mail :from => form.from, :subject => "Customer Contact: #{form.subject}" end |