Sha256: f96cc38bd0cb0944b74b2922709005422ee24f6eacbf105c7e89cf3cc894eba1
Contents?: true
Size: 649 Bytes
Versions: 2
Compression:
Stored size: 649 Bytes
Contents
class ContactMailer < ActionMailer::Base # default :from => "info@yoga.lu" # Subject can be set in your I18n file at config/locales/en.yml # with the following lookup: # # en.user_mailer.password_reset.subject # def message_from_contact_form(contact) @contact = contact # FIXME - only the email addresses show up. not the names :-( # TODO - what do to if contact_email is not set? recipient = "#{Setting.first.company_name} <#{Setting.first.contact_email}>" from = "#{@contact.sender_name} <#{@contact.sender_email}>" mail to: recipient, from: from , subject: 'Message from the contact form' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
tkh_content-0.1.9.1 | app/mailers/contact_mailer.rb |
tkh_content-0.1.9 | app/mailers/contact_mailer.rb |