X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FMailer.pm;h=02b11739823bac17a44ebe8f291ff802811df2c3;hb=d5d5779f5bc70ed1b224ff57a147a5db25767d88;hp=5e280128bdf90d2d5554d7d7c51f8ce434bc5129;hpb=49c7621e7bd48352be257e6ceea0e6fbb1718516;p=kivitendo-erp.git diff --git a/SL/Mailer.pm b/SL/Mailer.pm index 5e280128b..02b117398 100644 --- a/SL/Mailer.pm +++ b/SL/Mailer.pm @@ -36,6 +36,8 @@ use SL::Common; use SL::MIME; use SL::Template; +use strict; + my $num_sent = 0; sub new { @@ -184,7 +186,7 @@ $self->{message} my $application = ($attachment =~ /(^\w+$)|\.(html|text|txt|sql)$/) ? "text" : "application"; my $content_type = SL::MIME->mime_type_from_ext($filename); - $content_type = "${application}/${self->{format}}" if (!$content_type && $self->{format}); + $content_type = "${application}/$self->{format}" if (!$content_type && $self->{format}); $content_type ||= 'application/octet-stream'; open(IN, $attachment);