Skip Menu |

This queue is for tickets about the MIME-Lite CPAN distribution.

Report information
The Basics
Id: 17827
Status: resolved
Priority: 0/
Queue: MIME-Lite

People
Owner: Nobody in particular
Requestors: snpower [...] maths.tcd.ie
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 3.01
Fixed in: (no value)



Subject: boundary not set for $mail_msg->print()
I've the following code: # encode the reports my $msg = new MIME::Lite 'From' => "report generator", 'Subject' => "your reports", 'Data' => $output; # no images if (!$images_included) { $msg->attr("Content-Type" => "text/html"); # images - attach } else { $msg->attr("Content-Type" => "multipart/related"); foreach (@encoded_imgs) { $msg->attach($_); } } # Output html file my $outfile = $conf->{_output_dir}."out.html"; open(OUT, ">$outfile"); $msg->print(\*OUT); close(OUT); For this code, I get the following warnings: Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.0/MIME/Lite.pm line 2096. Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/5.8.0/MIME/Lite.pm line 2101. The reason for the warnings is that $boundary is not being set, and that is because $self->attr('content-type.boundary') isn't set. Cheers, Stella
hex@cpan indicates this is now fixed -- rjbs