Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Trouble with sending more than one attachment

by ytjPerl (Scribe)
on Oct 19, 2020 at 18:56 UTC ( [id://11122999]=note: print w/replies, xml ) Need Help??


in reply to Re: Trouble with sending more than one attachment
in thread Trouble with sending more than one attachment

Got it. Do you have any idea of how to attach more than one? Thanks
  • Comment on Re^2: Trouble with sending more than one attachment

Replies are listed 'Best First'.
Re^3: Trouble with sending more than one attachment
by AnomalousMonk (Archbishop) on Oct 19, 2020 at 20:27 UTC
Re^3: Trouble with sending more than one attachment
by pwagyi (Monk) on Oct 26, 2020 at 06:38 UTC
    you need to loop over each file.
    $att_part = MIME::Lite::->new( 'Type' => 'application/octet-stream', 'Encoding' => 'base64', 'Path' => shift @files, ); $msg->attach($html_part); $msg->attach($att_part); # assuming all files are same type and encoding, for my $file(@files) { $msg->attach( 'Type' => ......, 'Encoding' => ......, 'Path' => $file, ); }

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-21 02:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found