Hi monks,
I am unable to add multiple attachements to an email (i'm using the Mail::Sender module)
here is my code:
send_email();
sub send_email {
my $sender=new Mail::Sender({from =>$email_sender,
fake_from =>$email_sender,smtp => 'mail.test.com'});
$sender->MailFile({to => $email_recipient,
subject => $email_subject,
file=> $outfile,
file=> $file1,
msg => $email_body});
}
only the first file (outfile) is attached to the email, the second file (file1) is not. please can someone help me?
Thank you