Posted on 2008-08-21 19:25:41-07 by docwhat
Bug? Boundary newline
What Happens:

When I create a multipart email, there is a newline after the boundary. This causes email readers to not parse the Headers after the boundary and all the parts are given the default content type and disposition.

I was able to fix this on my install by changes this:

### Parts: my $part; foreach $part ( @{ $self->{Parts} } ) { $out->print("\n--$boundary\n"); $part->print($out); }

To This:

### Parts: my $part; foreach $part ( @{ $self->{Parts} } ) { $out->print("\n--$boundary"); $part->print($out); }

I'm wondering if this could be a platform EOL issue? This is running under CentOs 5 (Linux). I pulled the latest MIME::Lite from CPAN.

Ciao!

Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.