I am having an issue where mime lite is not including the attachment when it sends out the file.
The main part of the script creates the attachment and is quite involved. Simply it creates a tab separated file since some of the data elements contain commas.
The script runs and mime lite sends the message but doesn't include the attachment.
Here is the section of my script for MIME::Lite
my $msg = MIME::Lite->new(
From => $from,
To => $lobmail,
Subject => 'DUA '. $lobn .' Ticket Activity Report',
Type => 'multipart/alternative',
Type => 'TEXT',
Data => "Attached is the ticket activity report for $lobn",
Type => 'text/plain',
Encoding => 'base64',
Path => '/home/eric/tmp/lobreport.tsv',
Filename => 'LobReport.tsv',
Disposition => 'attachment'
) or die "Unable to add attachment: $!\n";