Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: smylers [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 1.21
Fixed in: 1.22



Subject: Text-Only Encoding Ignored
If sending just a plain-text mail (no HTML part) then the TextEncoding option is ignored. The following patch fixes the problem, though this increases the code duplication with elsewhere in the subroutine; some refactoring in that area would probably be a better way of addressing this: @@ -415,9 +415,7 @@ if ($txt and !$html) { my $ref=$self->{_param}; # create simple e-mail. - $mail = new MIME::Lite (%$ref); + $mail = new MIME::Lite (%$ref, + 'Encoding' => $self->{_textencoding}, + 'Data' => $txt); $mail->data($txt); #$self->addons(); # Remove some header for Eudora client (I haven't encountered it or tested it, but I suspect that for HTML-only mails with no images and no text the HTMLEncoding option is similarly ignored.) Cheers. Smylers
On Fri Oct 01 12:04:42 2004, guest wrote: Show quoted text
> If sending just a plain-text mail (no HTML part) then the TextEncoding > option is ignored. > > The following patch fixes the problem, though this increases the code > duplication with elsewhere in the subroutine; some refactoring in that > area would probably be a better way of addressing this:
Ok I do the refactoring needed.