X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/73b3a0627fe093f5ee1b9536f93648571a3bf971..975304c772762b6a029c21aab00f3f449ed5cdf5:/SL/Mailer.pm diff --git a/SL/Mailer.pm b/SL/Mailer.pm index c931dd319..c8fe0f2a4 100644 --- a/SL/Mailer.pm +++ b/SL/Mailer.pm @@ -160,7 +160,7 @@ sub _create_attachment_part { return undef if $email_journal > 1 && !defined $attachment_content; $attachment_content ||= ' '; - $attributes{charset} = $self->{charset} if $self->{charset}; + $attributes{charset} = $self->{charset} if $self->{charset} && ($attributes{content_type} =~ m{^text/}); $::lxdebug->message(LXDebug->DEBUG2(), "mail6 mtype=" . $attributes{Type} . " filename=" . $attributes{Filename});