From 63d2fdd8c60ae157737193a6c1f5d8e1edcc81b1 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Tue, 3 Mar 2009 11:16:24 +0100 Subject: [PATCH] (bug #2995) Set a default encoding for e-mails Just set a default encoding as utf8 if none is provided. Signed-off-by: Galen Charlton --- C4/Letters.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/Letters.pm b/C4/Letters.pm index 085ae9652d..188cb3a63d 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -766,7 +766,10 @@ sub _send_message_by_email { ); if ($message->{'content_type'}) { $sendmail_params{'content-type'} = $message->{'content_type'}; + }else{ + $sendmail_params{'content-type'} = 'text/plain; charset="UTF-8"'; } + my $success = sendmail( %sendmail_params ); if ( $success ) { -- 2.39.5