Class: WCC::Contentful::App::ContactMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- WCC::Contentful::App::ContactMailer
- Defined in:
- app/mailers/wcc/contentful/app/contact_mailer.rb
Instance Method Summary collapse
Instance Method Details
#contact_form_email(to_email, data) ⇒ Object
5 6 7 8 9 |
# File 'app/mailers/wcc/contentful/app/contact_mailer.rb', line 5 def contact_form_email(to_email, data) @form_data = data mail(from: @form_data[:Email], to: to_email, subject: "#{@form_data[:internal_title]} Submission") end |