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