From 7a50c0fb2db7e65c62d16f9a6d3acd1f3ff84b2f 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. --- C4/Letters.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/C4/Letters.pm b/C4/Letters.pm index 9f8a943b2a..040e2ff96f 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -757,7 +757,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