I don't have access to other perl email modules other than MIME:Lite
here is the scenario
$file='file.html';
$mime_msg->attach(Type => 'text/html', Path => $file, Filename => $fil
+e ) or die "Error attaching html: $!\n";
is working fine and content of file.html is coming as body of the email.
problem scenarioo
$file='file.html';
$mime_msg->attach(Type => 'text/html', Path => $file, Filename => $fil
+e ) or die "Error attaching html: $!\n";
$file2='attach.csv';
$mime_msg->attach(Type => 'application/csv', Path => $file2, Filename
+=> $file2 ) or die "Error attaching html: $!\n";
in this case both files are coming as attachments, i am expecting the first file file.html to be body of the email and attach.csv as an attachment. Any reason for this
|