Add a new Mailbox Header with a list of $addresses.

@param string       $name
@param array|string $addresses
519311
public function addMailboxHeader($name, $addresses = null)
    {
        $this->storeHeader($name, $this->factory->createMailboxHeader($name, $addresses));
    }
1367892
public function addFrom(string $address, ?string $name = null): Message
    {
        $this->from[] = [
            'address' => $address,
            'name'    => $name
        ];

        return $this;
    }
169141
public function to($address, $name = "", array $variables = [])
    {
        if (is_array($address)) {
            foreach ($address as $email => $variables) {
                $this->variables[$email] = $variables;

                $name = isset($variables['name']) ? $variables['name'] : null;
                $this->messageBuilder->addToRecipient($email, ['full_name' => $name]);
            }
        } else {
            if (!empty($variables)) {
                $this->variables[$address] = $variables;
            }
            $this->messageBuilder->addToRecipient($address, ['full_name' => $name]);
        }

        return $this;
    }
497096
public function replyTo($address, $name = null)
    {
        if ($this->arrayOfAddresses($address)) {
            $this->replyTo += $this->parseAddresses($address);
        } else {
            $this->replyTo[] = [$address, $name];
        }

        return $this;
    }
905713
private function createAddresses($addresses) {
        if (array_key_exists('email', $addresses)) {
            $this->mailer->addAddress($addresses['email'], $addresses['name']);
        } else {
            foreach ($addresses as $address) {
                $this->mailer->addAddress($address['email'], $address['name']);
            }
        }
    }
1204665
public function alwaysTo(string $address, ?string $name = null): void
    {
        $this->getMailer()->alwaysTo($address, $name);
    }
138762
public function addTo(string $address, ?string $name = null): Message
    {
        $this->to[] = [
            'address' => $address,
            'name'    => $name
        ];

        return $this;
    }
1144558
public function addCc($address, $name = null)
    {
        $current = $this->getCc();
        $current[$address] = $name;

        return $this->setCc($current);
    }
903524
public function addAddresse(\Sulu\Bundle\ContactBundle\Entity\Address $addresses)
    {
        $this->addresses[] = $addresses;

        return $this;
    }
1297871
public function addHeader(string $name, $value)
    {
        $lName = strtolower($name);
        if (isset($this->headers[$lName])) {
            $this->headers[$lName][1] = array_merge(
                $this->headers[$lName][1],
                (array) $value
            );
        } else {
            $this->headers[$lName] = [
                $name,
                (array) $value,
            ];
        }
    }
575808
public function bcc($address, $name = "", array $variables = [])
    {
        if (!empty($variables)) {
            $this->variables[$address] = $variables;
        }
        $this->messageBuilder->addBccRecipient($address, ['full_name' => $name]);

        return $this;
    }
678877
private function createBCCs($addresses) {
        if (is_array($addresses) && count($addresses) > 0) {
            foreach ($addresses as $address) {
                $this->mailer->addBCC($address);
            }
        } else if (!empty($addresses)) {
            $this->mailer->addBCC($addresses);
        }
    }
1229489
public function from($address, $name = null)
    {
        if (is_array($address)) {
            $this->addAddressArray($address, 'from');
        } else {
            $this->from[$address] = $name;
        }

        return $this;
    }
1121484
protected function addHeaders(array $headers)
    {
        foreach ($headers as $key => $val) {
            $normalized = strtolower($key);
            $this->headers[$key] = (array)$val;
            $this->headerNames[$normalized] = $key;
        }
    }
1368253
protected function addHeader($name, $value)
    {
        $this->baseload['headers'] = array_merge($this->baseload['headers'], [$name => $value]);
    }
655133
public function setFrom($address, $name = null)
	{
		$this->getComposer()->from = new ezcMailAddress($address, $name, CHARSET);

		return $this;
	}
1275731
protected function _addRecipientAndHeader($headerName, $email, $name)
    {
        $email = $this->_filterEmail($email);
        $name  = $this->_filterName($name);
        // prevent duplicates
        $this->_recipients[$email] = 1;
        $this->_storeHeader($headerName, $this->_formatAddress($email, $name), true);
    }