Class: Spree::ContactUs::ContactMailer

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

Instance Method Summary collapse

Instance Method Details

#contact_email(contact) ⇒ Object



2
3
4
5
6
7
8
9
# File 'app/mailers/spree/contact_us/contact_mailer.rb', line 2

def contact_email(contact)
  @contact = contact

  mail :from    => (SpreeContactUs.mailer_from || @contact.email),
       :reply_to => @contact.email,
       :subject => (SpreeContactUs.require_subject ? @contact.subject : t('spree.contact_us.contact_mailer.contact_email.subject', :email => @contact.email)),
       :to      => SpreeContactUs.mailer_to
end