Class MailAddress
Diese Klasse stellt die Struktur und Methoden zur Verwaltung einer MailAdresse zur Verfügung. Die Adresse wird nicht über den Konstruktor, sondern über eine statische Hilfsfunktion erstellt. Ist die Mailadresse nicht richtig, so wird eine MailAddressException geworfen.
$address = MailAddress::getAddress('[email protected]'); echo (string)$address; // Gibt [email protected] aus
- Alvine\Core\Alvine implements Serializable uses Alvine\Core\SerializableImplementation
- Alvine\Net\Mail\MailAddress
Namespace: Alvine\Net\Mail
Package: Alvine\Net\Mail
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20110904
Link: Alvine
Link: Standard RFC822
Throws:
Located at net/mail/MailAddress.class.php
Package: Alvine\Net\Mail
Category: Framework
License: Licence
Author: schukai GmbH info@schukai.de
Version: Release: $Revision: 173 $
Since: 20110904
Link: Alvine
Link: Standard RFC822
Throws:
Alvine\Net\Mail\MailAddressException
Located at net/mail/MailAddress.class.php
public
|
#
__construct( string $mailbox, string $host, string $personal = null )
Erstellt eine neue Mailadresse mit den Bestandteilen Mailbox (Teil vor dem @), Host (Teil nach dem @ und dem persönlichen Teil. |
public
string
|
|
public
string
|
|
public
string
|
|
public
string
|
|
protected static
array
|
#
parseAddresses( string $mailAddress )
Interne Methode die einen einen String mit Mailadressen verarbeitet und ein Array mit Standardobjekten zurück gibt. [0] => stdClass Object
(
[mailbox] => info
[host] => example.com
[personal] => test
)
|
public static
|
|
public static
|
#
getAddresses( string $mailAddress )
Erstellt neue Mailadressen-Objekte und gibt diese in einem Array zurück. |
__call(),
__clone(),
__get(),
__set(),
equals(),
getClass(),
getClone(),
getClosure(),
getHashCode(),
getID(),
getShortID(),
isCallable(),
isInstanceOf(),
propertyExists()
|
serialize(),
unserialize()
|
checkAndAdjustSerialisation(),
serialize(),
unserialize()
|
string |
RFCERRORSTRING
Fehlerstring der von \imap_rfc822_parse_adrlist geworfen wird. |
#
'.SYNTAX-ERROR.'
|
APIVERSION,
IDENTIFICATION,
SERIALVERSION,
VERSION
|
$hash,
$properties
|