[Koha-patches] [PATCH] (bug #2995) Set a default encoding for e-mails

Nahuel ANGELINETTI nahuel.angelinetti at biblibre.com
Tue Mar 3 11:16:24 CET 2009


Just set a default encoding as utf8 if none is provided.
---
 C4/Letters.pm |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/C4/Letters.pm b/C4/Letters.pm
index 9f8a943..040e2ff 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 ) {
-- 
1.5.6.3




More information about the Koha-patches mailing list