diff options
author | mark <mark> | 2011-07-28 22:01:47 +0000 |
---|---|---|
committer | mark <mark> | 2011-07-28 22:01:47 +0000 |
commit | 94db42b47263cf72ce248da59898f82a1364b0fa (patch) | |
tree | d826df418b5e03c8b61090d2053f3671accac1ee /FS/FS/Misc.pm | |
parent | bfe65f7f510efb468acd581158b7307d498eb003 (diff) |
message template localization, #13601
Diffstat (limited to 'FS/FS/Misc.pm')
-rw-r--r-- | FS/FS/Misc.pm | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/FS/FS/Misc.pm b/FS/FS/Misc.pm index 3b0de3d..6f6f2e2 100644 --- a/FS/FS/Misc.pm +++ b/FS/FS/Misc.pm @@ -9,6 +9,7 @@ use IPC::Run qw( run timeout ); # for _pslatex use IPC::Run3; # for do_print... should just use IPC::Run i guess use File::Temp; use Tie::IxHash; +use Encode; #do NOT depend on any FS:: modules here, causes weird (sometimes unreproducable #until on client machine) dependancy loops. put them in FS::Misc::Something #instead @@ -187,7 +188,7 @@ sub send_email { 'Sender' => $options{'from'}, 'Reply-To' => $options{'from'}, 'Date' => time2str("%a, %d %b %Y %X %z", $time), - 'Subject' => $options{'subject'}, + 'Subject' => Encode::encode('MIME-Header', $options{'subject'}), 'Message-ID' => "<$message_id>", @mimeargs, ); @@ -352,8 +353,8 @@ sub generate_email { $alternative->attach( 'Type' => 'text/plain', - #'Encoding' => 'quoted-printable', - 'Encoding' => '7bit', + 'Encoding' => 'quoted-printable', + #'Encoding' => '7bit', 'Data' => $data, 'Disposition' => 'inline', ); |