Subject: | uninitialized value |
Date: | Fri, 7 Mar 2008 15:23:25 +0100 |
To: | bug-MIME-Lite [...] rt.cpan.org |
From: | Ruben Puettmann <ruben [...] puettmann.net> |
hy,
I have this little test script. Running on debian testing with
libmime-lite-perl 3.021-3:
#! /usr/bin/perl -w
use MIME::Lite;
use strict;
my $email = 'target@example.org';
my $from_address = 'source@example.org';
my $mail_host = '127.0.0.1';
my $subject = 'The subject';
my $message_body = "Hello Body";
my $msg;
$msg = MIME::Lite->new (
From => $from_address,
To => $email,
Subject => $subject,
Type =>'multipart/mixed'
) or die "Error creating multipart container: $!\n";
$msg->attach (
Type => 'TEXT',
Data => $message_body
) or die "Error adding the text message part: $!\n";
MIME::Lite->send('smtp', $mail_host, Timeout=>60);
$msg->send;
I got this message:
Use of uninitialized value in substitution (s///) at /usr/share/perl5/MIME/Lite.pm line 511.
Use of uninitialized value in scalar assignment at /usr/share/perl5/MIME/Lite.pm line 513.
Use of uninitialized value in pattern match (m//) at /usr/share/perl5/MIME/Lite.pm line 514.
Ruben
--
Ruben Puettmann
ruben@puettmann.net
http://www.puettmann.net
Message body not shown because it is not plain text.