X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FMailer.pm;h=c8fe0f2a4c69eab8898865388787eb51b471bcec;hb=4fef059183b047e18d8fee7b4b75195b83d6ef23;hp=c931dd3192c20fc9d37179c7c656297aa6ae471c;hpb=73b3a0627fe093f5ee1b9536f93648571a3bf971;p=kivitendo-erp.git 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});