Sha256: 4ffd0d979bae95a4377172b2841e2fff88bd8366d7c94aeaf6866f1ed861b9f3

Contents?: true

Size: 305 Bytes

Versions: 25

Compression:

Stored size: 305 Bytes

Contents

# frozen_string_literal: true
module Hyrax
  # Mailer for contacting the administrator
  class ContactMailer < ApplicationMailer
    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

25 entries across 25 versions & 1 rubygems

Version Path
hyrax-5.0.1 app/mailers/hyrax/contact_mailer.rb
hyrax-5.0.0 app/mailers/hyrax/contact_mailer.rb
hyrax-5.0.0.rc3 app/mailers/hyrax/contact_mailer.rb
hyrax-5.0.0.rc2 app/mailers/hyrax/contact_mailer.rb
hyrax-5.0.0.rc1 app/mailers/hyrax/contact_mailer.rb
hyrax-3.6.0 app/mailers/hyrax/contact_mailer.rb
hyrax-4.0.0 app/mailers/hyrax/contact_mailer.rb
hyrax-4.0.0.rc3 app/mailers/hyrax/contact_mailer.rb
hyrax-4.0.0.rc2 app/mailers/hyrax/contact_mailer.rb
hyrax-4.0.0.rc1 app/mailers/hyrax/contact_mailer.rb
hyrax-3.5.0 app/mailers/hyrax/contact_mailer.rb
hyrax-4.0.0.beta2 app/mailers/hyrax/contact_mailer.rb
hyrax-3.4.2 app/mailers/hyrax/contact_mailer.rb
hyrax-4.0.0.beta1 app/mailers/hyrax/contact_mailer.rb
hyrax-3.4.1 app/mailers/hyrax/contact_mailer.rb
hyrax-3.4.0 app/mailers/hyrax/contact_mailer.rb
hyrax-3.3.0 app/mailers/hyrax/contact_mailer.rb
hyrax-3.2.0 app/mailers/hyrax/contact_mailer.rb
hyrax-3.1.0 app/mailers/hyrax/contact_mailer.rb
hyrax-3.0.2 app/mailers/hyrax/contact_mailer.rb