J
Justin C
I have a script that mails a zip file to a user, when I run it a warning
is generated: no data in this part
Ideally I'd like to have it run 'clean', can someone give me some clues
on how to make this work without generating a warning?
CODE START
my $sender = '[edit]' ;
my $recipient = '[edit]' ;
my $subject = 'monthly .zip mailing' ;
my $messageText = "Please find attached a .zip file containing Excel files\n";
my $fname = glob "pa206_*xls" ;
# create the message
my $msg = MIME::Lite->new(
From => $sender,
To => $recipient,
Subject => $subject,
Type => 'TEXT',
Data => $messageText
) ;
# attach the zip file
$msg->attach (
Type => 'application/zip',
Path => $fname,
Filename => $fname
) ;
# send the message
$msg->send() ;
CODE END
Thank you for any help you can give with this.
Justin.
is generated: no data in this part
Ideally I'd like to have it run 'clean', can someone give me some clues
on how to make this work without generating a warning?
CODE START
my $sender = '[edit]' ;
my $recipient = '[edit]' ;
my $subject = 'monthly .zip mailing' ;
my $messageText = "Please find attached a .zip file containing Excel files\n";
my $fname = glob "pa206_*xls" ;
# create the message
my $msg = MIME::Lite->new(
From => $sender,
To => $recipient,
Subject => $subject,
Type => 'TEXT',
Data => $messageText
) ;
# attach the zip file
$msg->attach (
Type => 'application/zip',
Path => $fname,
Filename => $fname
) ;
# send the message
$msg->send() ;
CODE END
Thank you for any help you can give with this.
Justin.