Zend\Mime\Decode::splitMessageStruct
decodes a mime encoded String and returns a struct of parts with header and body
Signature
public function splitMessageStruct(string
$message,
[string
$boundary = Mime::LINEEND,
[string
$EOL = Mime::LINEEND]] )
Parameters
$message
—
string
- raw message content
$boundary
—
string
- boundary as found in content-type
$EOL
—
string
- EOL string; defaults to {@link Zend\Mime\Mime::LINEEND}
Returns
- array|null
- parts as array('header' => array(name => value), 'body' => content), null if no parts found
Errors/Exceptions
-
RuntimeException