M
mike
If I have multiple files to include in my sendmail how would I do that?
part of my pgm looks like:
my $msg = new MIME::Lite
To =>$To,
From =>$from,
Subject =>'The subject message',
Type =>'multipart/mixed';
attach $msg
Type =>'text/html',
Data =>$mymsg;
attach $msg
Type =>'application/msword doc',
Disposition =>'attachment',
Path =>$attch_file;
$msg->send;
So, the variable "$attch_file" would it be a listing of the files to be
sent? What would it look like?
If I had 2 files to attach would I have:
attach $msg
Type =>'application/msword doc',
Disposition =>'attachment',
Path =>$attch_fileA;
attach $msg
Type =>'application/msword doc',
Disposition =>'attachment',
Path =>$attch_fileB;
and of course if i didn't know how many files I was processing i then
would iterate across an array or hash?
Any help is appreciated.
Mike
part of my pgm looks like:
my $msg = new MIME::Lite
To =>$To,
From =>$from,
Subject =>'The subject message',
Type =>'multipart/mixed';
attach $msg
Type =>'text/html',
Data =>$mymsg;
attach $msg
Type =>'application/msword doc',
Disposition =>'attachment',
Path =>$attch_file;
$msg->send;
So, the variable "$attch_file" would it be a listing of the files to be
sent? What would it look like?
If I had 2 files to attach would I have:
attach $msg
Type =>'application/msword doc',
Disposition =>'attachment',
Path =>$attch_fileA;
attach $msg
Type =>'application/msword doc',
Disposition =>'attachment',
Path =>$attch_fileB;
and of course if i didn't know how many files I was processing i then
would iterate across an array or hash?
Any help is appreciated.
Mike