Class: ContactsMailer
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- ContactsMailer
- Defined in:
- app/mailers/contacts_mailer.rb
Instance Method Summary collapse
Instance Method Details
#confirmation(contact) ⇒ Object
4 5 6 7 |
# File 'app/mailers/contacts_mailer.rb', line 4 def confirmation(contact) @contact = contact mail(:to => @contact.email, :subject => I18n.t("contacts.confirmation.subject")) end |
#notify(contact) ⇒ Object
9 10 11 12 13 |
# File 'app/mailers/contacts_mailer.rb', line 9 def notify(contact) @contact = contact recipient = Setting.where(:key => "notifies_recipient", :group => "contacts").first.try(:value) || Settings.app.notifies_recipient mail(:to => recipient, :subject => "#{Settings.app.domain}: #{I18n.t('contacts.contact_request_from', :from => @contact.name)}") end |