Class: Tenon::ContactMailer

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

Instance Method Summary collapse

Instance Method Details

#contact_notification(contact) ⇒ Object

TODO: Find a better way to set the host default_url_options = MySettings.site_url ? MySettings.site_url.gsub(‘http://’, ”) : ‘localhost:3000’



6
7
8
9
10
11
12
13
# File 'app/mailers/tenon/contact_mailer.rb', line 6

def contact_notification(contact)
  @contact = contact
  mail(
    to: Tenon::MySettings.contact_email,
    subject: "#{Tenon::MySettings.site_name} - New Contact Request",
    from: @contact.email
  )
end