inquiries 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,15 +5,15 @@ module Inquiries
5
5
  @inquiry = inquiry
6
6
  mail :subject => Inquiries::Inquiry.confirmation_subject,
7
7
  :to => inquiry.email,
8
- :from => "\"#{Rails.application.class.parent_name}\" <no-reply@#{request.domain}>",
8
+ :from => "no-reply@#{request.domain}",
9
9
  :reply_to => Inquiries::Inquiry.notification_recipients.split(',').first
10
10
  end
11
11
 
12
12
  def notification(inquiry, request)
13
13
  @inquiry = inquiry
14
14
  mail :subject => Inquiries::Inquiry.notification_subject,
15
- :to => Refinery::Inquiries::Setting.notification_recipients,
16
- :from => "\"#{Rails.application.class.parent_name}\" <no-reply@#{request.domain}>",
15
+ :to => Inquiries::Inquiry.notification_recipients,
16
+ :from => "no-reply@#{request.domain}",
17
17
  :reply_to => inquiry.email
18
18
  end
19
19
 
@@ -0,0 +1 @@
1
+ We have received your inquiry. We will get back to you as soon as possible.
@@ -0,0 +1,9 @@
1
+ Hello,
2
+
3
+ You've received a new inquiry:
4
+
5
+ From: <%= @inquiry.name %>
6
+ Email: <%= @inquiry.email %>
7
+
8
+ Message:
9
+ <%=strip_tags(@inquiry.message) %>
@@ -1,5 +1,5 @@
1
1
  module Inquiries
2
2
  module Rails
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: inquiries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -62,6 +62,8 @@ files:
62
62
  - app/views/inquiries/inquiries/_error_messages.html.erb
63
63
  - app/views/inquiries/inquiries/new.html.erb
64
64
  - app/views/inquiries/inquiries/thank_you.html.erb
65
+ - app/views/inquiries/inquiry_mailer/confirmation.text.erb
66
+ - app/views/inquiries/inquiry_mailer/notification.text.erb
65
67
  - config/routes.rb
66
68
  - inquiries.gemspec
67
69
  - lib/generators/inquiries_generator.rb