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 +1 -1
- data/app/mailers/contact_us/contact_mailer.rb +3 -2
- data/lib/contact_us/version.rb +1 -1
- data/spec/dummy/log/test.log +306 -17185
- data/spec/mailers/contact_us/contact_mailer_spec.rb +4 -0
- metadata +54 -19
data/README.md
CHANGED
@@ -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
|
-
:
|
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
|
data/lib/contact_us/version.rb
CHANGED