CodeExplorer splitMime example
public static function splitMessageStruct($message,
$boundary,
$EOL = Zend_Mime::LINEEND
) { $parts = self::
splitMime($message,
$boundary);
if (count($parts) <= 0
) { return null;
} $result = array
();
foreach ($parts as $part) { self::
splitMessage($part,
$headers,
$body,
$EOL);
$result[] = array
('header' =>
$headers,
'body' =>
$body );
} return $result;
}