From 7c08d7c81edf6b25d74c71d57414dc9da78810d8 Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 8 Apr 2011 11:49:20 +0200 Subject: [PATCH] Bug #6130 - Letters: Fixing Subject encoding MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Stéphane Delaune Signed-off-by: Chris Cormack --- C4/Letters.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index 269ec7898b..c894a57d62 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -816,7 +816,9 @@ sub _send_message_by_email ($;$$$) { } } - my $content = encode('utf8', $message->{'content'}); + my $utf8 = decode('MIME-Header', $message->{'subject'} ); + $message->{subject}= encode('MIME-Header', $utf8); + my $content = encode('utf8', $message->{'content'}); my %sendmail_params = ( To => $to_address, From => $message->{'from_address'} || C4::Context->preference('KohaAdminEmailAddress'), -- 2.39.5