Sha256: 2132701177192a6f22c9d62c36ebec63bd01ac7c5377375440e50852c82e1efc

Contents?: true

Size: 294 Bytes

Versions: 2

Compression:

Stored size: 294 Bytes

Contents

module ActiveadminSelleoCms
  class FormMailer < ActionMailer::Base
    default from: "web-form@jips.org"

    def form_submission(form_filename)
      attachments[form_filename] = File.read(form_filename)
      mail(to: 'aossowski@gmail.com', subject: "New form submission")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
activeadmin-selleo-cms-0.0.46 app/mailers/activeadmin_selleo_cms/form_mailer.rb
activeadmin-selleo-cms-0.0.45 app/mailers/activeadmin_selleo_cms/form_mailer.rb