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


in reply to MIME::lite and Net::SMTP::TLS - split attachment

Why do you think the attachment is split into 14 parts?

You could write $msg->as_string to a log file to see if the attachment is split into 14 parts at that point or some time later in processing. On Debian Linux, MIME::Lite does not split an attachment into multiple parts given arguments similar to what you are using:

use strict; use warnings; use MIME::Lite; my $msg = MIME::Lite->new( From => 'mail', To => 'mail', Subject => 'Perl Test', Type => 'multipart/signed', ); $msg->attach( Type => 'application/msword', Path => 'test.doc', Filename => 'FORM50.doc', Disposition => 'attachment', ); print $msg->as_string . "\n";

Maybe the attachment is being split at the receiving end of the communication? How are you receiving the email and saving the attachment?