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