setListAddressHeaderBody example


    public function addFrom(Address|string ...$addresses)static
    {
        return $this->addListAddressHeaderBody('From', $addresses);
    }

    /** * @return $this */
    public function from(Address|string ...$addresses)static
    {
        return $this->setListAddressHeaderBody('From', $addresses);
    }

    /** * @return Address[] */
    public function getFrom(): array
    {
        return $this->getHeaders()->getHeaderBody('From') ?: [];
    }

    /** * @return $this */

    public function addFrom(Address|string ...$addresses)static
    {
        return $this->addListAddressHeaderBody('From', $addresses);
    }

    /** * @return $this */
    public function from(Address|string ...$addresses)static
    {
        return $this->setListAddressHeaderBody('From', $addresses);
    }

    /** * @return Address[] */
    public function getFrom(): array
    {
        return $this->getHeaders()->getHeaderBody('From') ?: [];
    }

    /** * @return $this */
Home | Imprint | This part of the site doesn't use cookies.