MIME-Lite - Bug? Boundary newline

Posted on Thu Aug 21 22:25:41 2008 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!

Write a response