Class: ContactForm
- Inherits:
-
MailForm::Base
- Object
- MailForm::Base
- ContactForm
- 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
-
#headers ⇒ Object
Declare the e-mail headers.
Instance Method Details
#headers ⇒ Object
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 |