Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

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 the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2016-10-26 21:44 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (350 votes). Check out past polls.