I once used this script for sending a html message.
Wish it help to you too.

sub sendmail {

    my $to = shift;

    my $msg = MIME::Lite->new(
        From    => "$sender_name <$sender_email>",
        To      => $to,
        Subject => $subject,
        Type    => 'text/html',
        Encoding => 'base64',
        Data    => $content,
    );

    $msg->attr('content-type.charset' => 'gb2312');
    $msg->send('smtp','127.0.0.1', Debug=>0 );
}

On Tue, Jun 24, 2008 at 3:33 AM, btna <[EMAIL PROTECTED]> wrote:
> 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.
>

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


Reply via email to