aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/Email.pm
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/Email.pm')
-rw-r--r--perllib/FixMyStreet/Email.pm5
1 files changed, 2 insertions, 3 deletions
diff --git a/perllib/FixMyStreet/Email.pm b/perllib/FixMyStreet/Email.pm
index 34ac1514c..7d81c9dc5 100644
--- a/perllib/FixMyStreet/Email.pm
+++ b/perllib/FixMyStreet/Email.pm
@@ -10,7 +10,7 @@ use Email::MIME;
use Encode;
use File::Spec;
use POSIX qw();
-use Template;
+use FixMyStreet::Template;
use Digest::HMAC_SHA1 qw(hmac_sha1_hex);
use mySociety::Locale;
use mySociety::Random qw(random_bytes);
@@ -162,8 +162,7 @@ sub send_cron {
my $html_template = get_html_template($template, @include_path);
push @include_path, FixMyStreet->path_to( 'templates', 'email', 'default' );
- my $tt = Template->new({
- ENCODING => 'utf8',
+ my $tt = FixMyStreet::Template->new({
INCLUDE_PATH => \@include_path,
});
$vars->{signature} = _render_template($tt, 'signature.txt', $vars);