src/Mime/Message.php
protected function _addRecipient($type, $address, $name = null)
    {
        $classes = $this->_classes;
        $headers = $this->headers();
        if (!isset($headers[$type])) {
            $addresses = $classes['addresses'];
            $headers[$type] = new $addresses();
        }
        $class = $classes['address'];
        $value = new $class($address, $name);
        $headers[$type][] = $value;
        return $value;
    }
protected function _addRecipient($type, $address, $name = null)
    {
        $classes = $this->_classes;
        $headers = $this->headers();
        if (!isset($headers[$type])) {
            $addresses = $classes['addresses'];
            $headers[$type] = new $addresses();
        }
        $class = $classes['address'];
        $value = new $class($address, $name);
        $headers[$type][] = $value;
        return $value;
    }
protected function _addRecipient ( $ type , $ address , $ name = null ) { $ classes = $ this -> _classes ; $ headers = $ this -> headers ( ) ; if ( ! isset ( $ headers [ $ type ] ) ) { $ addresses = $ classes [ 'addresses' ] ; $ headers [ $ type ] = new $ addresses ( ) ; } $ class = $ classes [ 'address' ] ; $ value = new $ class ( $ address , $ name ) ; $ headers [ $ type ] [ ] = $ value ; return $ value ; }
Add a recipient to a specific type section.

@param  string $type    The type of recipient.
@param  string $address The email address.
@param  mixed  $name    The name.
@return objedt          The created address.
Add a recipient to a specific type section .