Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Re: MIME::lite and Net::SMTP::TLS - split attachment

by ig (Vicar)
on Jul 04, 2011 at 16:56 UTC ( #912674=note: print w/replies, xml ) Need Help??

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?

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://912674]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2018-05-25 03:44 GMT
Find Nodes?
    Voting Booth?