Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

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?


Comment on Re: MIME::lite and Net::SMTP::TLS - split attachment
Select or Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://912674]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2015-07-05 15:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls