$headers
$headers : array
Headers
MIME message part class
$body : \Pop\Mime\Part\Body
Body
addHeader(\Pop\Mime\Part\Header|string $header, string $value = null) : \Pop\Mime\Part
Add a header
\Pop\Mime\Part\Header|string | $header | |
string | $value |
addHeaders(array $headers) : \Pop\Mime\Part
Add headers
array | $headers |
removeHeader(string $name) : \Pop\Mime\Part
Remove header
string | $name |
setBody(\Pop\Mime\Part\Body|string $body) : \Pop\Mime\Part
Set body
\Pop\Mime\Part\Body|string | $body |
addFile(string $file, string $disposition = 'attachment', string $encoding = \Pop\Mime\Part\Body::BASE64, integer|boolean $split = true) : \Pop\Mime\Part
Add file as body
string | $file | |
string | $disposition | |
string | $encoding | |
integer|boolean | $split |
getBody() : \Pop\Mime\Part\Body
Get body
addPart(\Pop\Mime\Part $part) : \Pop\Mime\Part
Add a nested part
\Pop\Mime\Part | $part |
addParts(array $parts) : \Pop\Mime\Part
Add nested parts
array | $parts |
setSubType(string $subType) : \Pop\Mime\Part
Set sub-type
string | $subType |
setBoundary(string $boundary) : \Pop\Mime\Part
Set boundary
string | $boundary |