Sha256: 69c2170d6482a03fd59087881149042b9eeaad6ee76f3f202c0bfa740d1db711

Contents?: true

Size: 581 Bytes

Versions: 15

Compression:

Stored size: 581 Bytes

Contents

class FormMailer < ActionMailer::Base
  default :from => "from@example.com"

  def form_response(form, response)
    @form = form
    @response = response

    mail(:to       => form.email,
         :reply_to => response.email,
         :subject  =>   "[#{Noodall::UI.app_name}] Response to the #{form.title} form.")
  end

  def form_response_thankyou(form, response)
    @form = form
    @response = response

    mail(:to       => response.email,
         :reply_to => form.email,
         :subject  =>   "[#{Noodall::UI.app_name}] Thank you for getting in contact.")
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
noodall-form-builder-0.1.2 app/mailers/form_mailer.rb
noodall-form-builder-0.1.1 app/mailers/form_mailer.rb
noodall-form-builder-0.1.0 app/mailers/form_mailer.rb
noodall-form-builder-0.0.13 app/mailers/form_mailer.rb
noodall-form-builder-0.0.11 app/mailers/form_mailer.rb
noodall-form-builder-0.0.10 app/mailers/form_mailer.rb
noodall-form-builder-0.0.9 app/mailers/form_mailer.rb
noodall-form-builder-0.0.8 app/mailers/form_mailer.rb
noodall-form-builder-0.0.7 app/mailers/form_mailer.rb
noodall-form-builder-0.0.6 app/mailers/form_mailer.rb
noodall-form-builder-0.0.5 app/mailers/form_mailer.rb
noodall-form-builder-0.0.4 app/mailers/form_mailer.rb
noodall-form-builder-0.0.3 app/mailers/form_mailer.rb
noodall-form-builder-0.0.2 app/mailers/form_mailer.rb
noodall-form-builder-0.0.1 app/mailers/form_mailer.rb