diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-03-03 09:05:44 +0000 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-03-03 09:05:44 +0000 |
commit | c47cfe2bdd85b1561b57a5bccad9a1512af1f1bb (patch) | |
tree | 92286ee54a8485855cd935751a515542aaa5690e /perllib/FixMyStreet/App.pm | |
parent | 20fe27a76cd5ba8d912024f40c6ea881791623b0 (diff) |
Check that UTF8 in emails works
Diffstat (limited to 'perllib/FixMyStreet/App.pm')
-rw-r--r-- | perllib/FixMyStreet/App.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App.pm b/perllib/FixMyStreet/App.pm index f5d2f7d62..3e3c9c8a8 100644 --- a/perllib/FixMyStreet/App.pm +++ b/perllib/FixMyStreet/App.pm @@ -184,6 +184,9 @@ sub send_email { $email->header_set( ucfirst($_), $vars->{$_} ) for grep { $vars->{$_} } qw( to from subject); + # always send utf8 emails + $email->header_set( 'Content-Type' => 'text/plain; charset="utf-8"' ); + # send the email $c->model('EmailSend')->send($email); |