category | Zend |
---|---|
package | Zend_Mail |
subpackage | Storage |
copyright | Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license | New BSD License |
__get(string $name) : string
__toString() : string
string
contentcountParts() : integer
integer
number of sub-partsgetContent() : string
If part is multipart the raw content of this part with all sub parts is returned
\Zend_Mail_Exception |
---|
string
bodygetHeader(string $name, string $format = null
) : string | array
Internally headers that occur more than once are saved as array, all other as string. If $format is set to string implode is used to concat the values (with Zend_Mime::LINEEND as delim).
string
name of header, matches case-insensitive, but camel-case is replaced with dashes
string
change type of return value to 'string' or 'array'
\Zend_Mail_Exception |
---|
string
array
value of header in wanted or internal formatgetHeaderField(string $name, string $wantedPart= 0
, string $firstName= 0
) : string | array
If the header occurs more than once, only the value from the first header is returned.
Throws a Zend_Mail_Exception if the requested header does not exist. If the specific header field does not exist, returns null.
string
name of header, like in getHeader()
string
the wanted part, default is first, if null an array with all parts is returned
string
key name for the first part
\Zend_Exception, |
Zend_Mail_Exception |
---|
string
array
wanted part or all parts as array($firstName => firstPart, partname => value)getHeaders() : array
The returned headers are as saved internally. All names are lowercased. The value is a string or an array if a header with the same name occurs more than once.
array
headers as array(name => value)getPart(integer $num) : \Zend_Mail_Part
integer
number of part starting with 1 for first part
\Zend_Mail_Exception |
---|
\Zend_Mail_Part
wanted partgetSize() : integer
integer
sizeisMultipart() : boolean
boolean
if part is multipart