Sha256: c11963ac87f1fe7a1ff9e2c03af7a67478d714820282ea2a2a668613372b61ad

Contents?: true

Size: 916 Bytes

Versions: 8

Compression:

Stored size: 916 Bytes

Contents

module Pwb
  class EnquiryMailer < ApplicationMailer
    # default :bcc => "pwb@gmail.com"

    def general_enquiry_targeting_agency(client, enquiry)
      @client = client
      @enquiry = enquiry
      @title = I18n.t "mailers.general_enquiry_targeting_agency.title"
      if enquiry.title
        @subject = enquiry.title
      else
        @subject = @title
      end
      mail(to: enquiry.delivery_email,
           subject: @subject,
           template_path: 'pwb/mailers',
           template_name: 'general_enquiry_targeting_agency')
    end

    def property_enquiry_targeting_agency(client, enquiry, property)
      @client = client
      @enquiry = enquiry
      @property = property
      @title = enquiry.title
      mail(to: enquiry.delivery_email,
           subject: @title,
           template_path: 'pwb/mailers',
           template_name: 'property_enquiry_targeting_agency')
    end
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
pwb-1.3.0 app/mailers/pwb/enquiry_mailer.rb
pwb-1.2.0 app/mailers/pwb/enquiry_mailer.rb
pwb-1.1.1 app/mailers/pwb/enquiry_mailer.rb
pwb-1.0.0 app/mailers/pwb/enquiry_mailer.rb
pwb-0.1.1 app/mailers/pwb/enquiry_mailer.rb
pwb-0.1.0 app/mailers/pwb/enquiry_mailer.rb
pwb-0.0.2 app/mailers/pwb/enquiry_mailer.rb
pwb-0.0.1 app/mailers/pwb/enquiry_mailer.rb