Bug 10204 - Patron image no longer appears in the OPAC
[koha.git] / opac / opac-sendbasket.pl
index 9b2484d..da74745 100755 (executable)
@@ -27,7 +27,6 @@ use Carp;
 use Mail::Sendmail;
 use MIME::QuotedPrint;
 use MIME::Base64;
-use HTML::FormatText;
 use C4::Biblio;
 use C4::Items;
 use C4::Auth;
@@ -65,7 +64,8 @@ if ( $email_add ) {
         To   => $email_add,
         From => $email_from,
     'Reply-To' => $email_replyto,
-    'X-Orig-IP' => $ENV{'REMOTE_ADDR'},
+#    'X-Orig-IP' => $ENV{'REMOTE_ADDR'},
+#    FIXME Commented out for now: discussion on privacy issue
     'X-Abuse-Report' => C4::Context->preference('KohaAdminEmailAddress'),
     );
 
@@ -134,7 +134,7 @@ if ( $email_add ) {
 
     my $email_header = "";
     if ( $template_res =~ /<HEADER>\n(.*)\n?<END_HEADER>/s ) {
-        $email_header = $1;
+        $email_header = encode_qp($1);
     }
 
     my $email_file = "basket.txt";
@@ -143,7 +143,7 @@ if ( $email_add ) {
     }
 
     if ( $template_res =~ /<MESSAGE>\n(.*)\n?<END_MESSAGE>/s ) {
-        $body = $1;
+        $body = encode_qp($1);
     }
 
     my $boundary = "====" . time() . "====";