Hi all,

I am very new to Perl. I have a HTML file that I need to send via mail
but I don't want the attachment. I want the HTML file to be displayed
in the mail when the mail is received. In other words, the HTML file
becomes the content of the mail.

I have this so far:

use strict;
use MIME::Lite;

# SendTo email id
my $to_id = '[EMAIL PROTECTED]';
my $subject = sprintf("Test Report");
my $filename=$ARGV[0];

# create a new MIME Lite based email
my $msg = MIME::Lite->new
(
>From    => '[EMAIL PROTECTED],
To      => $to_id,
Subject => $subject,
Type    => 'multipart/mixed',

);

$msg->send();

I get an error about the "Data". How can I specify the HTMP file which
I will pass as an argument to this script?

Thanks for any assistance,

BTNA


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to