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"]
]

Instance Method Summary collapse

Instance Method Details

#headersObject

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


35
36
37
38
39
40
41
# File 'app/models/contact_form.rb', line 35

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