Class: FormMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- FormMailer
- Defined in:
- app/mailers/form_mailer.rb
Instance Method Summary collapse
Instance Method Details
#form_response(form, response) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'app/mailers/form_mailer.rb', line 4 def form_response(form, response) @form = form @response = response mail(:to => form.email, :reply_to => response.email, :subject => "[#{Noodall::UI.app_name}] Response to the #{form.title} form.") end |
#form_response_thankyou(form, response) ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'app/mailers/form_mailer.rb', line 13 def form_response_thankyou(form, response) @form = form @response = response mail(:to => response.email, :reply_to => form.email, :subject => "[#{Noodall::UI.app_name}] Thank you for getting in contact.") end |