Gets the raw text for one section of the message.
public getBodyPart ( integer $id, array $options ) : mixed | ||
$id | integer | The ID of the MIME part. |
$options | array | Additional options: - decode: (boolean) Attempt to decode the bodypart on the remote server. If successful, sets self::$_lastBodyPartDecode to the content-type of the decoded data. DEFAULT: No - length: (integer) If set, only download this many bytes of the bodypart from the server. DEFAULT: All data is retrieved. - mimeheaders: (boolean) Include the MIME headers also? DEFAULT: No - stream: (boolean) If true, return a stream. DEFAULT: No |
Résultat | mixed | The text of the part or a stream resource if 'stream' is true. |