Attempts to obtain the raw text of a MIME part.
public static getRawPartText ( mixed $text, string $type, string $id ) : string | ||
$text | mixed | The full text of the MIME message. The text is assumed to be MIME data (no MIME-Version checking is performed). It can be either a stream or a string. |
$type | string | Either 'header' or 'body'. |
$id | string | The MIME ID. |
return | string | The raw text. |