Mail: ezcMailMultipartMixed
[ ]
[ Display example ] [ Mail listing example ] [ Rfcs ]
[ ]
[ ]
[ ]
[ ]
Class: ezcMailMultipartMixed
|
The mixed multipart type is used to bundle an ordered list of mail parts. [
source]
Each part will be shown in the mail in the order provided.
The following example shows how to build a mail with a text part and an attachment using ezcMailMultipartMixed.
1. $mixed = new ezcMailMultipartMixed( new ezcMailTextPart( "Picture of me flying!" ),
2. new ezcMailFile( "fly.jpg" ) );
3. $mail = new ezcMail();
4. $mail->body = $mixed;
Parents
ezcMailPart
|
--ezcMailMultipart
|
--ezcMailMultipartMixed
Inherited Constants
From
ezcMailMultipart:
Inherited Member Variables
From
ezcMailMultipart:
From
ezcMailPart:
Method Summary
|
public ezcMailMultipartMixed |
__construct(
$... )
Constructs a new ezcMailMultipartMixed |
|
public void |
appendPart(
$part )
Appends a part to the list of parts. |
|
public array(ezcMailPart) |
getParts(
)
Returns the mail parts associated with this multipart. |
|
public string |
multipartType(
)
Returns "mixed". |
Inherited Methods
From
ezcMailMultipart :
From
ezcMailPart :
Methods
__construct
ezcMailMultipartMixed __construct(
ezcMailPart|array(ezcMailPart)
$... )
Constructs a new ezcMailMultipartMixed
The constructor accepts an arbitrary number of ezcMailParts or arrays with ezcMailparts. Parts are added in the order provided. Parameters of the wrong type are ignored.
Parameters
| Name |
Type |
Description |
$... |
ezcMailPart|array(ezcMailPart) |
|
Redefinition of
appendPart
Appends a part to the list of parts.
Parameters
getParts
array(ezcMailPart) getParts(
)
Returns the mail parts associated with this multipart.
multipartType
string multipartType(
)
Returns "mixed".
Redefinition of
Last updated: Mon, 27 Jul 2009