Subject: | use_envelope causes Message to be immutable |
Sample code:
use strict;
use Mail::Bulkmail;
my $email = 'you@your.domain.com';
my $bulk = Mail::Bulkmail->new(
"LIST" => [$email],
"From" => $email,
"To" => $email,
"Subject" => 'This is a test message!',
allow_duplicates => 1,
);
$bulk->Message("Bulk email message.");
$bulk->use_envelope(1);
$bulk->bulkmail();
$bulk->use_envelope(0); # I am trying to turn it off!
$bulk->Message("Mailing complete");
$bulk->mail($email);
The result is that both emails are sent, but the body of both emails is the same. They remain the same no matter what I do. (Even if I disconnect and reconnect.) I am discarding $bulk and creating a new one to work around this.
Problem encountered with Perl 5.005_03 running on Linux with an SMTP service on localhost.