Sha256: 0f47ccfa6d35dd74112c5908be3604bec1760f8ac16ec9b97d63221763c9b9c0

Contents?: true

Size: 544 Bytes

Versions: 2

Compression:

Stored size: 544 Bytes

Contents

require_dependency 'barkest_core/application_mailer_base.rb'

module BarkestCore
  ##
  # This mailer is used for the generic contact form.
  class ContactForm < ::BarkestCore::ApplicationMailerBase

    ##
    # Sends the message from the contact form.
    def contact(msg)
      @data = {
          msg: msg,
          client_ip: msg.remote_ip,
          gems: BarkestCore.gem_list(Rails.application.class.parent_name.underscore, 'rails', 'barkest*'),
      }
      mail subject: msg.full_subject, reply_to: msg.your_email
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
barkest_core-1.5.4.0 app/mailers/barkest_core/contact_form.rb
barkest_core-1.5.3.0 app/mailers/barkest_core/contact_form.rb