|
@@ 999-1003 (lines=5) @@
|
| 996 |
|
$htmlbody .= '</body>'. |
| 997 |
|
'</html>'; |
| 998 |
|
|
| 999 |
|
if(isset($truncsize) && strlen($htmlbody) > $truncsize) |
| 1000 |
|
{ |
| 1001 |
|
$htmlbody = Utils::Utf8_truncate($htmlbody,$truncsize); |
| 1002 |
|
$output->asbody->truncated = 1; |
| 1003 |
|
} |
| 1004 |
|
// output->nativebodytype is used as marker that the original message was of type ... but is now converted to, as type 2 is requested. |
| 1005 |
|
$output->nativebodytype = 2; |
| 1006 |
|
$output->asbody->data = StringStreamWrapper::Open($htmlbody); |
|
@@ 1022-1027 (lines=6) @@
|
| 1019 |
|
*/ |
| 1020 |
|
$output->asbody->type = 1; |
| 1021 |
|
$output->nativebodytype = 1; |
| 1022 |
|
if(isset($truncsize) && |
| 1023 |
|
strlen($plainBody) > $truncsize) |
| 1024 |
|
{ |
| 1025 |
|
$plainBody = Utils::Utf8_truncate($plainBody, $truncsize); |
| 1026 |
|
$output->asbody->truncated = 1; |
| 1027 |
|
} |
| 1028 |
|
$output->asbody->data = StringStreamWrapper::Open((string)$plainBody !== '' ? $plainBody : ' '); |
| 1029 |
|
$output->asbody->estimatedDataSize = strlen($plainBody); |
| 1030 |
|
} |