# High-ascii
$enc = "quoted-printable";
$encrbody = "ed_encode($rbody);
+ $type = "text/plain; charset=iso-8859-1";
}
else {
$enc = undef;
$encrbody = $rbody;
+ $type = "text/plain";
}
# run sendmail and feed it the reply
if ($enc) {
print MAIL "Content-Transfer-Encoding: $enc\n";
}
+ if (!$rheader{'Content-Type'}) {
+ print MAIL "Content-Type: $type\n";
+ }
print MAIL "\n";
print MAIL $encrbody;
}
$ctype = "multipart/mixed";
print MAIL "Content-Type: $ctype; boundary=\"$bound\"\n";
print MAIL "\n";
- $bodyattach = { 'headers' => [ [ 'Content-Type', 'text/plain' ], ],
+ $bodyattach = { 'headers' => [ [ 'Content-Type', $type ], ],
'data' => $encrbody };
if ($enc) {
push(@{$bodyattach->{'headers'}},