Class: PagesCms::ContactMailer
- Inherits:
-
ApplicationMailer
- Object
- ActionMailer::Base
- ApplicationMailer
- PagesCms::ContactMailer
- Defined in:
- app/mailers/pages_cms/contact_mailer.rb
Instance Method Summary collapse
-
#new_contact(contact_result) ⇒ Object
Subject can be set in your I18n file at config/locales/en.yml with the following lookup:.
Instance Method Details
#new_contact(contact_result) ⇒ Object
Subject can be set in your I18n file at config/locales/en.yml with the following lookup:
en.contact_mailer.new_contact.subject
9 10 11 12 13 |
# File 'app/mailers/pages_cms/contact_mailer.rb', line 9 def new_contact(contact_result) @contact = contact_result @account = @contact.account mail to: @account.email, from: "noreply@#{@account.site_name.parameterize}.com" end |