guitarplayer68 has asked for the wisdom of the Perl Monks concerning the following question:
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', ); $msg->attach ( Type => 'TEXT', Data => "Attached is the ticket activity report for $lobn", ); $msg->attach( Type => 'text/plain', Encoding => 'base64', Path => '/home/eric/tmp/lobreport.tsv', Filename => 'LobReport.tsv', Disposition => 'attachment' ) or die "Unable to add attachment: $!\n"; $msg->send();
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MIME::Lite not including Attachments
by tokpela (Chaplain) on Feb 09, 2010 at 16:24 UTC | |
|
Re: MIME::Lite not including Attachments
by hesco (Deacon) on Feb 10, 2010 at 05:49 UTC | |
|
Re: MIME::Lite not including Attachments
by steve (Deacon) on Feb 11, 2010 at 15:57 UTC |