Path

ez components / documentation / api reference / 1.0.1 / mail


eZ Components 1.0.1

Mail: ezcMailAddress

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

Class: ezcMailAddress

A container to store a mail address in RFC822 format. [source]
The class ezcMailTools contains methods for transformation between several formats.

Member Variables

public mixed $charset
The character set used in the $name property.
public string $email
The email address of the recipient.
public string $name
The name of the recipient (optional).

Method Summary

public ezcMailAddress __construct( $email, [$name = ''], [$charset = 'us-ascii'] )
Constructs a new ezcMailAddress with the mail address $email and the optional name $name.
public static ezcMailAddress __set_state( $array )
Returns a new instance of this class with the data specified by $array.

Methods

__construct

ezcMailAddress __construct( string $email, [string $name = ''], [ $charset = 'us-ascii'] )
Constructs a new ezcMailAddress with the mail address $email and the optional name $name.

Parameters

Name Type Description
$email string  
$name string  
$charset  

__set_state

ezcMailAddress __set_state( $array )
Returns a new instance of this class with the data specified by $array.
$array contains all the data members of this class in the form: array('member_name'=>value).
__set_state makes this class exportable with var_export. var_export() generates code, that calls this method when it is parsed with PHP.

Last updated: Fri, 02 Nov 2007