diff options
-rw-r--r-- | CHANGELOG.md | 1 | ||||
-rw-r--r-- | t/app/controller/contact.t | 2 | ||||
-rw-r--r-- | templates/email/default/contact.txt | 2 |
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 %] |