Bug 29330: (QA follow-up) Use passed MIME type
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Amended: tidied.
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit 6c96102678)
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
This commit is contained in:
parent
6fff1cecb7
commit
42015a0450
|
|
@ -1247,7 +1247,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',
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue