Class: Incline::ContactForm

Inherits:
ApplicationMailerBase show all
Defined in:
app/mailers/incline/contact_form.rb

Overview

This mailer is used for the generic contact form.

Instance Method Summary collapse

Instance Method Details

#contact(msg) ⇒ Object

Sends the message from the contact form.



9
10
11
12
13
14
15
16
# File 'app/mailers/incline/contact_form.rb', line 9

def contact(msg)
  @data = {
      msg: msg,
      client_ip: msg.remote_ip,
      gems: Incline::gem_list
  }
  mail subject: msg.full_subject, reply_to: msg.your_email
end