Sha256: 5dcbb4aec93cf308318b96b7b673e4bd029853343fefe88b7f8f11e32dcea4f3

Contents?: true

Size: 599 Bytes

Versions: 23

Compression:

Stored size: 599 Bytes

Contents

class FormMailer < ActionMailer::Base
  default :from => Noodall::FormBuilder.noreply_address

  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

23 entries across 23 versions & 1 rubygems

Version Path
noodall-form-builder-0.5.4 app/mailers/form_mailer.rb
noodall-form-builder-0.5.3 app/mailers/form_mailer.rb
noodall-form-builder-0.5.2 app/mailers/form_mailer.rb
noodall-form-builder-0.5.0 app/mailers/form_mailer.rb
noodall-form-builder-0.4.2 app/mailers/form_mailer.rb
noodall-form-builder-0.4.1 app/mailers/form_mailer.rb
noodall-form-builder-0.4.0 app/mailers/form_mailer.rb
noodall-form-builder-0.3.3 app/mailers/form_mailer.rb
noodall-form-builder-0.2.11 app/mailers/form_mailer.rb
noodall-form-builder-0.3.2 app/mailers/form_mailer.rb
noodall-form-builder-0.3.1 app/mailers/form_mailer.rb
noodall-form-builder-0.3.0 app/mailers/form_mailer.rb
noodall-form-builder-0.2.10 app/mailers/form_mailer.rb
noodall-form-builder-0.2.9 app/mailers/form_mailer.rb
noodall-form-builder-0.2.8 app/mailers/form_mailer.rb
noodall-form-builder-0.2.7 app/mailers/form_mailer.rb
noodall-form-builder-0.2.5 app/mailers/form_mailer.rb
noodall-form-builder-0.2.4 app/mailers/form_mailer.rb
noodall-form-builder-0.2.3 app/mailers/form_mailer.rb
noodall-form-builder-0.2.2 app/mailers/form_mailer.rb