Sha256: c78082e8edf9813a25386684297c8c1b1c57bf38cbb4a4024b4b09b3d384df1f
Contents?: true
Size: 742 Bytes
Versions: 1
Compression:
Stored size: 742 Bytes
Contents
module Spree module ContactUs class ContactMailer < Spree::BaseMailer def contact_email(contact) @contact = contact mail_from = if SolidusContactUs::Config.mailer_from.present? SolidusContactUs::Config.mailer_from else Spree::Store.default.mail_from_address end subject = if SolidusContactUs::Config.require_subject @contact.subject else t('spree.subject', email: @contact.email) end mail(from: mail_from, reply_to: @contact.email, subject: subject, to: @contact.email) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_contact_us-1.0.0 | app/mailers/spree/contact_us/contact_mailer.rb |