Class: ContactForm

Inherits:
MailForm::Base
  • Object
show all
Defined in:
app/models/contact_form.rb

Constant Summary collapse

ISSUE_TYPES =
[
  ["Depositing content", "Depositing content"],
  ["Making changes to my content", "Making changes to my content"],
  ["Browsing and searching", "Browsing and searching"],
  ["Reporting a problem", "Reporting a problem"],
  ["General inquiry or request", "General inquiry or request"]
].freeze

Instance Method Summary collapse

Instance Method Details

#headersObject

Declare the e-mail headers. It accepts anything the mail method in ActionMailer accepts.



21
22
23
24
25
26
27
# File 'app/models/contact_form.rb', line 21

def headers
  {
    subject: "Contact Form:#{subject}",
    to: Sufia.config.contact_email,
    from: Sufia.config.from_email
  }
end