Sha256: f9971c665552e8714827b57b09e270e2564e42c78ee67b8d1c26296bd298483f

Contents?: true

Size: 665 Bytes

Versions: 9

Compression:

Stored size: 665 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))}>"
    @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

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-0.9.4 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.3 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.2.2 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.2.1 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.2 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.1.2 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.1.1 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.1 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.0 vendor/plugins/inquiries/app/models/inquiry_mailer.rb