Class: ContactForm::FormMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ContactForm::FormMailer
- Defined in:
- app/mailers/contact_form/form_mailer.rb
Instance Method Summary collapse
Instance Method Details
#auto_reply(form) ⇒ Object
6 7 8 9 |
# File 'app/mailers/contact_form/form_mailer.rb', line 6 def auto_reply(form) @form = form mail(to: form.email, subject: I18n.t(".contact_form.mailers.form_mailer.auto_reply_subject")) end |
#new_contact(form) ⇒ Object
11 12 13 14 |
# File 'app/mailers/contact_form/form_mailer.rb', line 11 def new_contact(form) @form = form mail(to: CONTACT_FORM_CONFIG["form_mailer"]["new_contact_to"], subject: I18n.t(".contact_form.mailers.form_mailer.new_contact_subject")) end |