aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-08-28 14:34:11 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-08-28 16:29:18 +0100
commitf83e44a8c1b41491686a3831e14529e6e554c653 (patch)
tree745ed244a608095659f5b030844d234a577c4c1d
parent22c12ab78128788bb44b8567d8735671b73b02e6 (diff)
Use site name in contact email subject line.
-rw-r--r--CHANGELOG.md1
-rw-r--r--t/app/controller/contact.t2
-rw-r--r--templates/email/default/contact.txt2
3 files changed, 3 insertions, 2 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5bc867714..9dfa2c07d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -43,6 +43,7 @@
- Add ability for client to set bodies not to be sent to.
- Make it easier to prevent a form_detail_placeholder being printed.
- Include user agent in contact form emails. #2206
+ - Use site name in contact email subject line.
* v2.3.4 (7th June 2018)
diff --git a/t/app/controller/contact.t b/t/app/controller/contact.t
index cb299d161..2cbdbc0da 100644
--- a/t/app/controller/contact.t
+++ b/t/app/controller/contact.t
@@ -305,7 +305,7 @@ for my $test (
my $email = $mech->get_email;
- is $email->header('Subject'), 'FMS message: ' . $test->{fields}->{subject}, 'subject';
+ is $email->header('Subject'), 'FixMyStreet message: ' . $test->{fields}->{subject}, 'subject';
is $email->header('From'), "\"$test->{fields}->{name}\" <$test->{fields}->{em}>", 'from';
my $body = $mech->get_text_body_from_email($email);
like $body, qr/$test->{fields}->{message}/, 'body';
diff --git a/templates/email/default/contact.txt b/templates/email/default/contact.txt
index 545b1632c..bd97d17a6 100644
--- a/templates/email/default/contact.txt
+++ b/templates/email/default/contact.txt
@@ -1,4 +1,4 @@
-Subject: FMS message: [% subject %]
+Subject: [% site_name %] message: [% subject %]
[% message %]