I am simply trying to us MIME::Lite to add the contents of a pre-existing html file as the body of an email, not an attachment. I have everything working, regarding the email, but can't figure out how to place the html file as the body of an email. I can make it work using an attachment, but not in the body text.
Please let me know how to place the contents of a file into the body content of the email message.
I am using Unix.
my $mail_host = '220.127.116.11';
$msg = MIME::Lite->new)
Subject =>'send as html inline';
Data =>'this is where the contents of the external html should go'
MIME::Lite->send('smtp', $mail_host, Timeout=>60);