GetAsArray(); foreach ($aParts as /* @var $oPart \MailSo\Mime\Part */ &$oPart) { if (0 < count($aResult)) { $aResult[] = \MailSo\Mime\Enumerations\Constants::CRLF. '--'.$sBoundary.\MailSo\Mime\Enumerations\Constants::CRLF; } $aResult[] = $oPart->ToStream(); } return \MailSo\Base\StreamWrappers\SubStreams::CreateStream($aResult); } return $rResult; } }