refinerycms 0.9.4.2 → 0.9.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -14,4 +14,6 @@ config.action_view.debug_rjs = true
14
14
  config.action_controller.perform_caching = false
15
15
 
16
16
  # Don't care if the mailer can't send
17
- config.action_mailer.raise_delivery_errors = false
17
+ config.action_mailer.raise_delivery_errors = false
18
+
19
+ ActionMailer::Base.delivery_method = :sendmail
@@ -1,19 +1,20 @@
1
1
  class InquiryMailer < ActionMailer::Base
2
2
 
3
3
  def confirmation(inquiry, request)
4
- @subject = "Thank you for your inquiry"
5
- @recipients = inquiry.email
6
- @from = "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
7
- @sent_on = Time.now
8
- @body[:inquiry] = inquiry
4
+ subject "Thank you for your inquiry"
5
+ recipients inquiry.email
6
+ from "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
7
+ reply_to InquirySetting.notification_recipients.value.split(',').first
8
+ sent_on Time.now
9
+ body :inquiry => inquiry
9
10
  end
10
11
 
11
12
  def notification(inquiry, request)
12
- @subject = "New inquiry from your website"
13
- @recipients = InquirySetting.notification_recipients.value
14
- @from = "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
15
- @sent_on = Time.now
16
- @body[:inquiry] = inquiry
13
+ subject "New inquiry from your website"
14
+ recipients InquirySetting.notification_recipients.value
15
+ from "\"#{RefinerySetting[:site_name]}\" <no-reply@#{request.domain(RefinerySetting.find_or_set(:tld_length, 1))}>"
16
+ sent_on Time.now
17
+ body :inquiry => inquiry
17
18
  end
18
19
 
19
20
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refinerycms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4.2
4
+ version: 0.9.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Resolve Digital