Path

ez components / documentation / api reference / 1.0.1 / mail


eZ Components 1.0.1

Mail: ezcMailMultipartMixed

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

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 ezcMailMultipartMixednew ezcMailTextPart"Picture of me flying!" ),
2.                                             new ezcMailFilePart"fly.jpg" ) );
3.         $mail new ezcMail();
4.         $mail->body $mixed;

Parents

ezcMailPart
   |
   --ezcMailMultipart
      |
      --ezcMailMultipartMixed

Inherited Member Variables

From ezcMailMultipart:
protected  ezcMailMultipart::$parts

Method Summary

public void __construct( 0 )
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 :
public ezcMailMultipart ezcMailMultipart::__construct()
Constructs a new ezcMailMultipart with the parts $parts.
public string ezcMailMultipart::generateBody()
Returns the generated body for all multipart types.
protected static string ezcMailMultipart::generateBoundary()
Returns a unique boundary string.
public abstract string ezcMailMultipart::multipartType()
Returns the type of multipart.
public mixed ezcMailMultipart::__get()
Returns the property $name.
public void ezcMailMultipart::__set()
Sets the property $name to $value.
From ezcMailPart :
public void ezcMailPart::appendExcludeHeaders()
The array $headers will be excluded when the headers are generated.
public string ezcMailPart::generate()
Returns the complete mail part including both the header and the body as a string.
public abstract string ezcMailPart::generateBody()
Returns the body of this part as a string.
public string ezcMailPart::generateHeaders()
Returns the headers set for this part as a RFC 822 string.
public string ezcMailPart::getHeader()
Returns the value of the header $name.
public void ezcMailPart::setHeader()
Sets the header $name to the value $value.

Methods

__construct

void __construct( ezcMailPart|array(ezcMailPart) 0 )
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
0 ezcMailPart|array(ezcMailPart)  

Redefinition of

Method Description
ezcMailMultipart::__construct() Constructs a new ezcMailMultipart with the parts $parts.

appendPart

void appendPart( $part )
Appends a part to the list of parts.

Parameters

Name Type Description
$part ezcMailpart  

getParts

array(ezcMailPart) getParts( )
Returns the mail parts associated with this multipart.

multipartType

string multipartType( )
Returns "mixed".

Redefinition of

Method Description
ezcMailMultipart::multipartType() Returns the type of multipart.

Last updated: Fri, 02 Nov 2007