refinerycms 0.9.4.2 → 0.9.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
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
|