use SL::MIME;
use SL::Template;
+use strict;
+
my $num_sent = 0;
sub new {
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);