Class AddressList
An address list.
<?php use ICanBoogie\Mailer\AddressList; $list = new AddressList; $list[] = "olivier.laviale@gmail.com"; # or $list["olivier.laviale@gmail.com"] = true; # or, with a name $list["olivier.laviale@gmail.com"] = "Olivier Laviale"; # Creating a collection from an array $list = new AddressList([ 'person1@example.com', 'person2@example.org', 'person3@example.net' => 'Person 3 Name', 'person4@example.org', 'person5@example.net' => 'Person 5 Name' ]); isset($list['person1@example.com']); // true # remove mailbox unset($list['person1@example.com']); isset($list['person1@example.com']); // false
- ICanBoogie\Mailer\AddressList implements ArrayAccess, IteratorAggregate
Direct known subclasses
Indirect known subclasses
ICanBoogie\Mailer\BccHeader
,
ICanBoogie\Mailer\CcHeader
,
ICanBoogie\Mailer\FromHeader
,
ICanBoogie\Mailer\ToHeader
Namespace: ICanBoogie\Mailer
See: http://tools.ietf.org/html/rfc5322#section-3.4
Located at vendor/icanboogie/mailer/lib/address-list.php
See: http://tools.ietf.org/html/rfc5322#section-3.4
Located at vendor/icanboogie/mailer/lib/address-list.php
Methods summary
public static
|
#
from( string|array|
Creates a |
public static
array[string]string
|
|
public static
string
|
#
escape_display_name( string $display_name )
Escapes the specified display name according to the specification. |
public
|
#
__construct( array $address_list = array() )
Initializes the |
public
`true`
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
string
|
Magic methods summary
Properties summary
protected
array
|
$address_list |
#
A collection of recipient. |