in reply to adding multiple attachments to email
Parameters of MailFile method are constructed from a hash, which is a "unique key" -> "some value" map. There can be only one "file" key. Fortunately, Mail::Sender's MailFile method allows you to specify an array of file names to attach:
The file parameter may be a "filename", a "list, of, file, names" or a \@list_of_file_names.
Try this:
$sender->MailFile({to => $email_recipient, subject => $email_subject, file => [ $outfile, $file1 ], msg => $email_body});
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: adding multiple attachments to email
by perlnoobster (Sexton) on Apr 30, 2013 at 08:52 UTC | |
by aitap (Curate) on Apr 30, 2013 at 09:03 UTC | |
by perlnoobster (Sexton) on Apr 30, 2013 at 09:01 UTC |