Class: Hyrax::ContactMailer
- Inherits:
-
ApplicationMailer
- Object
- ApplicationMailer
- Hyrax::ContactMailer
- Defined in:
- app/mailers/hyrax/contact_mailer.rb
Overview
Mailer for contacting the administrator
Instance Method Summary collapse
Instance Method Details
#contact(contact_form) ⇒ Object
5 6 7 8 9 10 |
# File 'app/mailers/hyrax/contact_mailer.rb', line 5 def contact(contact_form) @contact_form = contact_form # Check for spam return if @contact_form.spam? mail(@contact_form.headers) end |