title: attached file is blank on the sent email
body: <p>I have used this script to send the text file, the email go out with attachment but when I open the attached file it's blank. any idea why? did I miss anything. thx</p>
  
  <pre><code>#!/usr/bin/perl -wl
  my $msg = MIME::Lite-&gt;new(
      From    =&gt; 'xxx.net',
      To      =&gt; 'xxx.com',
      Subject =&gt; 'Report',
      Type    =&gt; 'multipart/mixed',
  )or die "Error creating multipart container: $!\n";
  $msg-&gt;attach(
      Type     =&gt; 'TEXT',
      Data     =&gt; " Please check the attached file.",
  )or die "Error adding the text message part: $!\n";
  $msg-&gt;attach (
     Type =&gt; 'text/plain',
     Path =&gt; '/myfile/file1',
     Filename =&gt; 'result.txt',
     Disposition =&gt; 'attachment'
  )or die "Error adding the attached file part: $!\n" ;
  $msg-&gt;send;
  </code></pre>