1367. Class

1367.1. Zend\Mail\Storage\Part\File

1367.1.1. Methods

1367.1.1.1. __construct

__construct()

Public constructor

This handler supports the following params: - file filename or open file handler with message content (required) - startPos start position of message or part in file (default: current position) - endPos end position of message or part in file (default: end of file)

Parameters:array – full message with or without headers
Throws ExceptionRuntimeException:
 
Throws ExceptionInvalidArgumentException:
 

1367.1.1.2. getContent

getContent()

Body of part

If part is multipart the raw content of this part with all sub parts is returned

Parameters:resource – Optional
Return type:string body

1367.1.1.3. getSize

getSize()

Return size of part

Quite simple implemented currently (not decoding). Handle with care.

Return type:int size

1367.1.1.4. getPart

getPart()

Get part of multipart message

Parameters:int – number of part starting with 1 for first part
Throws ExceptionRuntimeException:
 
Return type:Part wanted part

Project Versions

Table Of Contents

Previous topic

1364. Function

Next topic

1368. Function

This Page