mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-09 15:38:27 +01:00
need to set Transfer-Encoding used by base-part, it always seems to be "quoted-printable"
This commit is contained in:
parent
3d85ca9db6
commit
6a7c98a2e1
@ -669,9 +669,16 @@ class egw_mailer extends Horde_Mime_Mail
|
|||||||
$content = translation::convert($part->toString(array(
|
$content = translation::convert($part->toString(array(
|
||||||
'encode' => Horde_Mime_Part::ENCODE_BINARY, // otherwise we cant recode charset
|
'encode' => Horde_Mime_Part::ENCODE_BINARY, // otherwise we cant recode charset
|
||||||
)), $charset, 'utf-8');
|
)), $charset, 'utf-8');
|
||||||
$part->setContents($content);
|
$part->setContents($content, array(
|
||||||
|
'encode' => Horde_Mime_Part::ENCODE_BINARY, // $content is NOT encoded
|
||||||
|
));
|
||||||
$part->setContentTypeParameter('charset', 'utf-8');
|
$part->setContentTypeParameter('charset', 'utf-8');
|
||||||
if ($part === $base) $mailer->addHeader('Content-Type', $base->getType(true));
|
if ($part === $base)
|
||||||
|
{
|
||||||
|
$mailer->addHeader('Content-Type', $part->getType(true));
|
||||||
|
// need to set Transfer-Encoding used by base-part, it always seems to be "quoted-printable"
|
||||||
|
$mailer->addHeader('Content-Transfer-Encoding', 'quoted-printable');
|
||||||
|
}
|
||||||
$converted = true;
|
$converted = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user