lib/classes/Swift/Mime/Headers/MailboxHeader.php
public function setNameAddresses($mailboxes)
    {
        $this->mailboxes = $this->normalizeMailboxes((array) $mailboxes);
        $this->setCachedValue(null); //Clear any cached value
    }
public function setNameAddresses($mailboxes)
    {
        $this->mailboxes = $this->normalizeMailboxes((array) $mailboxes);
        $this->setCachedValue(null); //Clear any cached value
    }
public function setNameAddresses ( $ mailboxes ) { $ this -> mailboxes = $ this -> normalizeMailboxes ( ( array ) $ mailboxes ) ; $ this -> setCachedValue ( null ) ; //Clear any cached value }
Set a list of mailboxes to be shown in this Header.

The mailboxes can be a simple array of addresses, or an array of
key=>value pairs where (email => personalName).
Example:
<code>
<?php
//Sets two mailboxes in the Header, one with a personal name
$header->setNameAddresses(array(
'chris@swiftmailer.org' => 'Chris Corbyn',
'mark@swiftmailer.org' //No associated personal name
));
?>
</code>

@see __construct()
@see setAddresses()
@see setValue()

@param string|string[] $mailboxes

@throws Swift_RfcComplianceException
Set a list of mailboxes to be shown in this Header .