aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-09-01 17:36:09 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-09-01 17:36:09 +0100
commitd6c6c05f4627c2b85f2ec867ff3b6c85f297e8cc (patch)
tree50a126d205b85221d1687b3a9f36524f371d947f /perllib
parentd713f8838843d557f5901f801acbc6fcbf31a025 (diff)
Allow through reply-to header in send_email.
This might be used now by e.g. the contact form.
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm
index 013f47a29..8883bb91f 100644
--- a/perllib/FixMyStreet/App.pm
+++ b/perllib/FixMyStreet/App.pm
@@ -322,7 +322,7 @@ sub send_email {
# create an email - will parse headers out of content
my $email = Email::Simple->new($content);
$email->header_set( ucfirst($_), $vars->{$_} )
- for grep { $vars->{$_} } qw( to from subject);
+ for grep { $vars->{$_} } qw( to from subject Reply-To);
return if $c->is_abuser( $email->header('To') );