Class: ContactMailer

Inherits:
ApplicationMailer
  • Object
show all
Defined in:
app/mailers/contact_mailer.rb

Overview

Mailer for the contact form

Constant Summary collapse

CONTACT_FORM_TO =
ENV["CONTACT_FORM_TO"].presence || "[email protected]"

Instance Method Summary collapse

Instance Method Details

#contact_email(contact) ⇒ Object



5
6
7
8
9
10
# File 'app/mailers/contact_mailer.rb', line 5

def contact_email(contact)
  @contact = contact
  mail(subject: "[OmbuLabs] #{contact.email} just sent you a message!",
       to: CONTACT_FORM_TO,
       reply_to: contact.email)
end