Class: UserMailer

Inherits:
ApplicationMailer show all
Defined in:
app/mailers/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#contact_email(contact) ⇒ Object


4
5
6
7
# File 'app/mailers/user_mailer.rb', line 4

def contact_email(contact)
  @contact = contact
  mail(to: Rails.application.secrets.owner_email, from: @contact.email, :subject => "Website Contact")
end