@@ -, +, @@
"HTML message" box is checked.
with the html markup clearly visible
---
C4/Letters.pm | 15 +++++++--------
1 files changed, 7 insertions(+), 8 deletions(-)
--- a/C4/Letters.pm
+++ a/C4/Letters.pm
@@ -286,14 +286,13 @@ sub SendAlerts {
my $message = Koha::Email->new();
my %mail = $message->create_message_headers(
{
- to => $email,
- from => $branchdetails->{'branchemail'},
- replyto => $branchdetails->{'branchreplyto'},
- sender => $branchdetails->{'branchreturnpath'},
- subject => Encode::encode( "utf8", "" . $letter->{title} ),
- message =>
- Encode::encode( "utf8", "" . $letter->{content} ),
- contenttype => 'text/plain; charset="utf8"',
+ to => $email,
+ from => $branchdetails->{'branchemail'},
+ replyto => $branchdetails->{'branchreplyto'},
+ sender => $branchdetails->{'branchreturnpath'},
+ subject => Encode::encode( "utf8", "" . $letter->{title} ),
+ message => Encode::encode( "utf8", "" . $letter->{content} ),
+ contenttype => $letter->{'content-type'} || 'text/plain; charset="utf8"',
}
);
--