aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2013-02-26 15:34:56 +1100
committerHenare Degan <henare.degan@gmail.com>2013-02-26 15:34:56 +1100
commit77a284d6d088f7aa6d40810d46a39658fc6cf2cd (patch)
tree1a7d60da017ff09c2ba9a90d63d673ef5e9447de
parent055bb1ccae888da054dd54b68ea4549af05b24b6 (diff)
Fix some missing variables
-rw-r--r--app/mailers/contact_mailer.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/mailers/contact_mailer.rb b/app/mailers/contact_mailer.rb
index b9f0d79af..b990e38f4 100644
--- a/app/mailers/contact_mailer.rb
+++ b/app/mailers/contact_mailer.rb
@@ -26,7 +26,7 @@ class ContactMailer < ApplicationMailer
# Do not set envelope from address to the from_user, so they can't get
# someone's email addresses from transitory bounce messages.
- headers('Return-Path' => blackhole_email, 'Reply-To' => @from)
+ headers('Return-Path' => blackhole_email, 'Reply-To' => from_user.name_and_email)
mail(:from => from_user.name_and_email,
:to => recipient_user.name_and_email,
@@ -35,7 +35,7 @@ class ContactMailer < ApplicationMailer
# Send message to a user from the administrator
def from_admin_message(recipient_user, subject, message)
- @message, @from_user, @recipient_user = message, @from, recipient_user
+ @message, @from_user, @recipient_user = message, contact_from_name_and_email, recipient_user
mail(:from => contact_from_name_and_email,
:to => recipient_user.name_and_email,