Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Sending email attachments

by MrCromeDome (Deacon)
on Jul 24, 2003 at 21:40 UTC ( [id://277704] : note . print w/replies, xml ) Need Help??


in reply to Sending email attachments

Have you considered Mail::Sender? Would give you a simpler and more portable way of doing what you want:
(new Mail::Sender)->MailFile({ smtp => "your.mailserver.com", from => $from_email, to => $to_email, subject => $subject, msg => $message, file => \@filelist });
@filelist is an array containing a list of file names to attach.

Cheers!
MrCromeDome