contact_us 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -23,7 +23,7 @@ If you don't want to have Formtastic as a dependency there is a fork of this pro
23
23
 
24
24
  In your `Gemfile`, add the following dependencies:
25
25
 
26
- gem 'contact_us', '~> 0.2.0'
26
+ gem 'contact_us', '~> 0.2.1'
27
27
 
28
28
  From `Rails.root` run:
29
29
 
@@ -2,8 +2,9 @@ class ContactUs::ContactMailer < ActionMailer::Base
2
2
  def contact_email(contact)
3
3
  @contact = contact
4
4
 
5
- mail :from => (ContactUs.mailer_from || contact.email),
6
- :subject => (ContactUs.require_subject ? @contact.subject : t('contact_us.contact_mailer.contact_email.subject', :email => contact.email)),
5
+ mail :from => (ContactUs.mailer_from || @contact.email),
6
+ :reply_to => @contact.email,
7
+ :subject => (ContactUs.require_subject ? @contact.subject : t('contact_us.contact_mailer.contact_email.subject', :email => @contact.email)),
7
8
  :to => ContactUs.mailer_to
8
9
  end
9
10
  end
@@ -1,3 +1,3 @@
1
1
  module ContactUs
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end