http://www.perlmonks.org?node_id=11123173


in reply to Re^2: Trouble with sending more than one attachment
in thread Trouble with sending more than one attachment

you need to loop over each file.
$att_part = MIME::Lite::->new( 'Type' => 'application/octet-stream', 'Encoding' => 'base64', 'Path' => shift @files, ); $msg->attach($html_part); $msg->attach($att_part); # assuming all files are same type and encoding, for my $file(@files) { $msg->attach( 'Type' => ......, 'Encoding' => ......, 'Path' => $file, ); }