mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-06-26 04:41:41 +02:00
if we have no text body, but only a PDF or an image, set binary, as it's already base64 transfer-encoded, when recreating the mail with a different subject
This commit is contained in:
parent
acab3ca856
commit
5cf6253f77
@ -7323,6 +7323,11 @@ class Mail
|
|||||||
$structure->setTransferEncoding('8bit');
|
$structure->setTransferEncoding('8bit');
|
||||||
$structure->setCharset('utf-8');
|
$structure->setCharset('utf-8');
|
||||||
}
|
}
|
||||||
|
// if we have no text body, but only a PDF or an image, set binary, as it's already base64 transfer-encoded
|
||||||
|
if ($structure->getType() === 'application/pdf' || $structure->getPrimaryType() === 'image')
|
||||||
|
{
|
||||||
|
$structure->setTransferEncoding('binary', ['send' => true]);
|
||||||
|
}
|
||||||
$mailer->setBasePart($structure);
|
$mailer->setBasePart($structure);
|
||||||
//error_log(__METHOD__.__LINE__.':'.array2string($structure));
|
//error_log(__METHOD__.__LINE__.':'.array2string($structure));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user