This module's document is very few.
I think you should write with @files = </path/*.pdf> to get the full path for
pdf files.
After that you pass the anex argument when calling the function:
my $status = Mail::SendEasy::send(
smtp => 'localhost' ,
...
anex => \...@files,
);
HTH.
On Nov 17, 2009, Tiffany <[email protected]> wrote:
Hello,
I am not very familiar with Perl, but I am trying to use it to email
all files within a directory that have a .pdf extension using the anex
command within the Mail::SendEasy module. I have created an array
with my filenames using @files = <*.pdf>; but I am not sure how to
translate that array into email attachments using anex. Any
suggestions would be appreciated!
--
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
http://learn.perl.org/