Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Trouble with sending more than one attachment

by Corion (Pope)
on Oct 18, 2020 at 15:29 UTC ( #11122984=note: print w/replies, xml ) Need Help??


in reply to Trouble with sending more than one attachment

Where in your code is the loop where you loop over the contents of @files?

You may want something like:

for my $file (@files) { my $att_part = MIME::Lite::->new( 'Type' => 'application/octet-stream', 'Encoding' => 'base64', 'Path' => $file, ); $msg->attach($att_part); };

Replies are listed 'Best First'.
Re^2: Trouble with sending more than one attachment
by ytjPerl (Scribe) on Oct 19, 2020 at 18:57 UTC
    Tried. This does not work

      Maybe you want to tell us in what sense this does not work?

      I don't really know how it fails for you, so I don't know what you need to change.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2020-12-01 19:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (20 votes). Check out past polls.

    Notices?