Class: Hyrax::ContactMailer

Inherits:
ActionMailer::Base
  • Object
show all
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



4
5
6
7
8
9
# File 'app/mailers/hyrax/contact_mailer.rb', line 4

def contact(contact_form)
  @contact_form = contact_form
  # Check for spam
  return if @contact_form.spam?
  mail(@contact_form.headers)
end