README
Todo List
Swift_Mime_Headers_AbstractHeader | --Swift_Mime_Headers_MailboxHeader
Swift_Mime_Headers_MailboxHeader __construct( string $name, Swift_Mime_HeaderEncoder $encoder)
string createDisplayNameString( string $displayName, [boolean $shorten = false])
string createMailboxListString( $mailboxes)
string[] getAddresses( )
string getFieldBody( )
This is not necessarily RFC 2822 compliant since folding white space will not be added at this stage (see toString() for that).
array getFieldBodyModel( )
This method returns an associative array like getNameAddresses()
int getFieldType( )
string[] getNameAddresses( )
The key is the address and the value is the name (or null if none set). Example:
string[] getNameAddressStrings( )
Example:
string[] normalizeMailboxes( $mailboxes)
void removeAddresses( string|string[] $addresses)
void setAddresses( string[] $addresses)
void setFieldBodyModel( mixed $model)
This method takes a string, or an array of addresses.
void setNameAddresses( string|string[] $mailboxes)
The mailboxes can be a simple array of addresses, or an array of key=>value pairs where (email => personalName). Example: