aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/contact_mailer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/contact_mailer.rb')
-rw-r--r--app/models/contact_mailer.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/app/models/contact_mailer.rb b/app/models/contact_mailer.rb
index e3d1d3c71..b36d5f165 100644
--- a/app/models/contact_mailer.rb
+++ b/app/models/contact_mailer.rb
@@ -4,7 +4,7 @@
# Copyright (c) 2008 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
-# $Id: contact_mailer.rb,v 1.5 2008-03-13 12:33:40 francis Exp $
+# $Id: contact_mailer.rb,v 1.6 2008-03-21 14:04:29 francis Exp $
class ContactMailer < ApplicationMailer
@@ -18,6 +18,12 @@ class ContactMailer < ApplicationMailer
}
end
+ # We always set Reply-To when we set Sender to be different from From,
+ # since some email clients seem to erroneously use the envelope from when
+ # they shouldn't, and this might help. (Have had mysterious cases of a
+ # reply coming in duplicate from a public body to both From and envelope
+ # from)
+
# Send message to another user
def user_message(from_user, recipient_user, from_user_url, subject, message)
@from = from_user.name_and_email