Sha256: ff0e4d393f0f3251130f86dca3aa64ba1bb06e25c4088d7aec259fd3a2a7c41c

Contents?: true

Size: 276 Bytes

Versions: 8

Compression:

Stored size: 276 Bytes

Contents

module Sufia
  # Mailer for contacting the administrator
  class ContactMailer < ActionMailer::Base
    def contact(contact_form)
      @contact_form = contact_form
      # Check for spam
      return if @contact_form.spam?
      mail(@contact_form.headers)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sufia-7.4.1 app/mailers/sufia/contact_mailer.rb
sufia-7.4.0 app/mailers/sufia/contact_mailer.rb
sufia-7.3.1 app/mailers/sufia/contact_mailer.rb
sufia-7.3.0 app/mailers/sufia/contact_mailer.rb
sufia-7.3.0.rc3 app/mailers/sufia/contact_mailer.rb
sufia-7.3.0.rc2 app/mailers/sufia/contact_mailer.rb
sufia-7.3.0.rc1 app/mailers/sufia/contact_mailer.rb
sufia-7.2.0 app/mailers/sufia/contact_mailer.rb