Sha256: 91ea3292711e5f878f450d4d597ec9f26df1aa6baf80b544e82cea8070983ed5

Contents?: true

Size: 772 Bytes

Versions: 53

Compression:

Stored size: 772 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

53 entries across 53 versions & 2 rubygems

Version Path
jacobat-refinerycms-0.9.6.14 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.34 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.33 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.32 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.31 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.30 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.29 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.28 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.27 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.26 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.25 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.24 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.23 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.22 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.21 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.19 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.18 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.17 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.16 vendor/plugins/inquiries/app/models/inquiry_mailer.rb
refinerycms-0.9.6.15 vendor/plugins/inquiries/app/models/inquiry_mailer.rb