|
@@ 1027-1031 (lines=5) @@
|
| 1024 |
|
$htmlbody .= '</body>'. |
| 1025 |
|
'</html>'; |
| 1026 |
|
|
| 1027 |
|
if(isset($truncsize) && strlen($htmlbody) > $truncsize) |
| 1028 |
|
{ |
| 1029 |
|
$htmlbody = Utils::Utf8_truncate($htmlbody,$truncsize); |
| 1030 |
|
$output->asbody->truncated = 1; |
| 1031 |
|
} |
| 1032 |
|
// output->nativebodytype is used as marker that the original message was of type ... but is now converted to, as type 2 is requested. |
| 1033 |
|
$output->nativebodytype = 2; |
| 1034 |
|
$output->asbody->data = StringStreamWrapper::Open($htmlbody); |
|
@@ 1050-1055 (lines=6) @@
|
| 1047 |
|
*/ |
| 1048 |
|
$output->asbody->type = 1; |
| 1049 |
|
$output->nativebodytype = 1; |
| 1050 |
|
if(isset($truncsize) && |
| 1051 |
|
strlen($plainBody) > $truncsize) |
| 1052 |
|
{ |
| 1053 |
|
$plainBody = Utils::Utf8_truncate($plainBody, $truncsize); |
| 1054 |
|
$output->asbody->truncated = 1; |
| 1055 |
|
} |
| 1056 |
|
$output->asbody->data = StringStreamWrapper::Open((string)$plainBody !== '' ? $plainBody : ' '); |
| 1057 |
|
$output->asbody->estimatedDataSize = strlen($plainBody); |
| 1058 |
|
} |