#!/usr/bin/perl
use lib "lib";
use MIME::Lite;

quiet MIME::Lite 1;


# Create a new multipart message:
$msg = new MIME::Lite 
     To       => 'me@somewhere.com',
     Subject  => 'GIF test',
     Type     => 'TEXT',
     'Content-Length' => 23,      
     Filename => "home.ls",
     Path     => "ls -l $ENV{HOME} |";

# Sign it:
$msg->sign;

# Output:
$msg->print(\*STDOUT);
#print "\n-------------------------------------------------\n";
#print $msg->stringify;
#print "\n-------------------------------------------------\n";
#print $msg->as_string;

