On Wed, 17 Oct 2007 15:15:07 +0200, Ruben Puettmann wrote:

> If I send with this code a mail:
> ....
> I got uninitialized errors on line 511 an so on. I have fix it with:

Sorry, I cannot reproduce this.
I've tried it with the attached test script modelled after your code
excerpts.

Could you please point me to a way I can trigger the bug or provide a
minimal example script yourself?

Thanks in advance,
gregor 
-- 
 .''`.   http://info.comodo.priv.at/ | gpg key ID: 0x00F3CFE4
 : :' :  debian: the universal operating system - http://www.debian.org/
 `. `'   member of https://www.vibe.at/ | how to reply: http://got.to/quote/
   `-    NP: Rod Stewart: Sweet Surrender
#!/usr/bin/perl

use MIME::Lite;
use strict;
use warnings;

my $from_address="[EMAIL PROTECTED]";
my $email="[EMAIL PROTECTED]";
my $subject="test";
my $message_body="body";
my $mail_host="localhost";
my $client_windows_src="/tmp/foo.zip";
my $client_windows="foo.zip";

my $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";

$msg->attach (
  Type => 'application/zip',
  Path => $client_windows_src,
  Filename => $client_windows,
  Disposition => 'attachment'
) or die "Error adding $client_windows_src: $!\n";
                               
MIME::Lite->send('smtp', $mail_host, Timeout=>60);
$msg->send;

Attachment: signature.asc
Description: Digital signature

Reply via email to