From 6c961026789ef1dfdd3ebd4ed18469fef7bd649b Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Mon, 8 Nov 2021 08:10:38 -0300 Subject: [PATCH] Bug 29330: (QA follow-up) Use passed MIME type Signed-off-by: Tomas Cohen Arazi Signed-off-by: Martin Renvoize Signed-off-by: Marcel de Rooy Amended: tidied. Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- C4/Letters.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Letters.pm b/C4/Letters.pm index b931dea1e7..1ad8198fe4 100644 --- a/C4/Letters.pm +++ b/C4/Letters.pm @@ -1262,7 +1262,7 @@ sub _add_attachments { foreach my $attachment ( @$attachments ) { $message->attach( Encode::encode( "UTF-8", $attachment->{content} ), - content_type => 'application/octet-stream', + content_type => $attachment->{type} || 'application/octet-stream', name => $attachment->{filename}, disposition => 'attachment', ); -- 2.20.1