Class: ContactMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/forge/app/mailers/contact_mailer.rb

Instance Method Summary collapse

Instance Method Details

#contact(contact) ⇒ Object



4
5
6
7
8
# File 'lib/forge/app/mailers/contact_mailer.rb', line 4

def contact(contact)
  @contact = contact
  subject = @contact.subject.blank? ? "#{MySettings.site_title} :: Contact Received" : "#{MySettings.site_title} :: #{@contact.subject}"
  mail(:subject => subject)
end