Class: BarkestCore::ContactForm
- Inherits:
-
ApplicationMailerBase
- Object
- ActionMailer::Base
- ApplicationMailerBase
- BarkestCore::ContactForm
- Defined in:
- app/mailers/barkest_core/contact_form.rb
Overview
This mailer is used for the generic contact form.
Instance Method Summary collapse
-
#contact(msg) ⇒ Object
Sends the message from the contact form.
Methods inherited from ApplicationMailerBase
default_hostname, default_recipient, default_sender
Instance Method Details
#contact(msg) ⇒ Object
Sends the message from the contact form.
10 11 12 13 14 15 16 17 |
# File 'app/mailers/barkest_core/contact_form.rb', line 10 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 |