Sha256: 7dc57cb98a62d13b3b17940c10d8de3c90f6053306fdfeae5a32e0bc2dd9112c

Contents?: true

Size: 771 Bytes

Versions: 17

Compression:

Stored size: 771 Bytes

Contents

class InquiryMailer < ActionMailer::Base

  def confirmation(inquiry, request)
    subject     "Thank you for your inquiry"
    recipients  inquiry.email
    from        "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
    reply_to    InquirySetting.notification_recipients.value.split(',').first
    sent_on     Time.now
    body        :inquiry => inquiry
  end

  def notification(inquiry, request)
    subject     "New inquiry from your website"
    recipients  InquirySetting.notification_recipients.value
    from        "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
    sent_on     Time.now
    body        :inquiry => inquiry
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
refinerycms-0.9.5.13 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.12 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.11 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.10 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.9 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.8 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.7 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.6 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.5 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.4 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.3 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.2 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5.1 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.5 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.4.5 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.4.4 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.4.3 vendor/plugins/inquiries/app/models/inquiry_mailer.rb