this patch change the attachment encoding, else if the file is too large, koha throws an error.
This solution was found on koha list in a Joshua's e-mail
Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
use strict;
use CGI;
+use Encode qw(encode);
+
use Mail::Sendmail;
use MIME::QuotedPrint;
use MIME::Base64;
# # Writing mail
# $mail{body} =
$mail{'content-type'} = "multipart/mixed; boundary=\"$boundary\"";
- my $isofile = encode_base64($iso2709);
+ my $isofile = encode_base64(encode("UTF-8", $iso2709));
$boundary = '--' . $boundary;
$mail{body} = <<END_OF_BODY;
$boundary